Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-3066

No Error message is popped up on UI when a dedicated resource is dedicated to another Account.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.4.0
    • Install and Setup
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      Below are the steps followed.
      1)Dedicated a Zone to account1 from domain1
      2)Then tried to dedicate the pod in that zone to another Account from different domain
      3)Then the UI Shows a message the POD is dedicated but there is a error message logged in the management server log as below:

      2013-06-19 20:24:07,842 ERROR [cloudstack.dedicated.DedicatedResourceManagerImpl] (Job-Executor-26:job-26) Cannot dedicate Pod. Its zone is already dedicated
      2013-06-19 20:24:07,847 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-26:job-26) Unexpected exception while executing org.apache.cloudstack.api.commands.DedicatePodCmd
      com.cloud.utils.exception.CloudRuntimeException: Pod's Zone Z1 is already dedicated
      at org.apache.cloudstack.dedicated.DedicatedResourceManagerImpl.dedicatePod(DedicatedResourceManagerImpl.java:266)
      at org.apache.cloudstack.api.commands.DedicatePodCmd.execute(DedicatePodCmd.java:95)
      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
      at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:679)

      The expected result is the UI should also pop up a message saying the pod is dedicated to another Account instead of saying the dedication as successful.

      Attachments

        1. 2014-10-08-jessica1A.PNG
          290 kB
          Jessica Wang
        2. 2014-10-08-jessica1B.PNG
          255 kB
          Jessica Wang
        3. 2014-10-08-jessica2A.PNG
          281 kB
          Jessica Wang
        4. 2014-10-08-jessica2B.PNG
          262 kB
          Jessica Wang
        5. 2014-10-08-jessica3A.PNG
          282 kB
          Jessica Wang
        6. 2014-10-08-jessica3B.PNG
          286 kB
          Jessica Wang
        7. 2014-10-08-jessica4A.PNG
          286 kB
          Jessica Wang
        8. 2014-10-08-jessica4B.PNG
          279 kB
          Jessica Wang

        Activity

          People

            jessicawang Jessica Wang
            kiran_koneti Kiran Koneti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: