You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "sureshanaparti (via GitHub)" <gi...@apache.org> on 2025/10/29 09:48:55 UTC

[I] UI: Create Backup Schedule doesn't show instance selection and fails [cloudstack]

sureshanaparti opened a new issue, #11922:
URL: https://github.com/apache/cloudstack/issues/11922

   ### problem
   
   Create Backup Schedule in UI doesn't show instance selection, passes random uuid for virtualmachineid and fails with error "Unable to execute API command createbackupschedule due to invalid value. Invalid parameter virtualmachineid value=65780f6c-c2d4-4ee7-a174-db123c28ce67 due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class."
   
   uuid - 65780f6c-c2d4-4ee7-a174-db123c28ce67 belongs to a volume.
   
   https://github.com/user-attachments/assets/0af0627c-2416-4ac8-b1ac-d830358e7d29
   
   ```
   2025-10-29 09:25:47,505 DEBUG [c.c.a.ApiServlet] (qtp253011924-19:[ctx-9c190e7b]) (logid:dc193205) ===START===  10.0.3.251 -- POST
   command=createBackupSchedule
   response=json
   virtualmachineid=65780f6c-c2d4-4ee7-a174-db123c28ce67
   intervaltype=hourly
   maxbackups=3
   timezone=UTC
   schedule=45
   sessionkey=5n6tY5o-DLl6Voxg6Hr1XQ_hKbU
   
   ...
   2025-10-29 09:25:47,519 DEBUG [c.c.a.d.ParamProcessWorker] (qtp253011924-19:[ctx-9c190e7b, ctx-ea965f53]) (logid:dc193205) Object entity uuid = 65780f6c-c2d4-4ee7-a174-db123c28ce67 does not exist in the database.
   2025-10-29 09:25:47,519 INFO  [c.c.a.ApiServer] (qtp253011924-19:[ctx-9c190e7b, ctx-ea965f53]) (logid:dc193205) Unable to execute API command createbackupschedule due to invalid value. Invalid parameter virtualmachineid value=65780f6c-c2d4-4ee7-a174-db123c28ce67 due to incorrect long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class.
   2025-10-29 09:25:47,520 DEBUG [c.c.a.ApiServlet] (qtp253011924-19:[ctx-9c190e7b, ctx-ea965f53]) (logid:dc193205) ===END===  10.0.3.251 -- POST
   command=createBackupSchedule
   response=json
   virtualmachineid=65780f6c-c2d4-4ee7-a174-db123c28ce67
   intervaltype=hourly
   maxbackups=3
   timezone=UTC
   schedule=45
   sessionkey=5n6tY5o-DLl6Voxg6Hr1XQ_hKbU
   ```
   
   ### versions
   
   ACS 4.22
   
   ### The steps to reproduce the bug
   
   1. Create Backup Repo, and Backup Offering
   2. Deploy an instance and assign Backup Offering to it
   3. Navigate to Backup Schedules, and Try to create schedule for the instance
   
   
   ### What to do about it?
   
   UI shouldn't pass any random virtualmachineid for backup schedule, and there should be provision to select the instance (with backup offering) to schedule backups.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] UI: Create Backup Schedule doesn't show instance selection and fails [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #11922:
URL: https://github.com/apache/cloudstack/issues/11922#issuecomment-3460938714

   The UI is taking the uuid of the last resource that was opened before BackupSchedules.
   For resources that are not vm, an Instance selection dialog is shown.
   
   https://github.com/user-attachments/assets/ef6b3cff-1d9a-4717-b3ac-8ed525276817
   
   [ui](https://github.com/apache/cloudstack/tree/main/ui)/[src](https://github.com/apache/cloudstack/tree/main/ui/src)/[views](https://github.com/apache/cloudstack/tree/main/ui/src/views)/[compute](https://github.com/apache/cloudstack/tree/main/ui/src/views/compute)/[backup](https://github.com/apache/cloudstack/tree/main/ui/src/views/compute/backup)/CreateBackupSchedule.vue
   ```
     computed: {
       resourceType () {
         if (!this.resource) return 'none'
   
         if (this.resource.vmstate !== undefined ||
           this.resource.guestosid !== undefined ||
           this.resource.hypervisor !== undefined ||
           this.resource.backupofferingid !== undefined ||
           this.resource.serviceofferingid !== undefined) {
           return 'vm'
         }  
   ```
   
   But the code above is recognizing a volume as a vm (this.resource.vmstate is set for volumes). So it is not showing the vm selection dialog.
   
   Ideally it should not consider the old resource at all and always show the instance selection dialog.
   
   
   
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] UI: Create Backup Schedule doesn't show instance selection and fails [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar closed issue #11922: UI: Create Backup Schedule doesn't show instance selection and fails
URL: https://github.com/apache/cloudstack/issues/11922


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] UI: Create Backup Schedule doesn't show instance selection and fails [cloudstack]

Posted by "abh1sar (via GitHub)" <gi...@apache.org>.
abh1sar commented on issue #11922:
URL: https://github.com/apache/cloudstack/issues/11922#issuecomment-3816012956

   Fixed by https://github.com/apache/cloudstack/pull/11946


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org