nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
66 stars 36 forks source link

ntnx_images: uploaded image size shows empty in Prism central #355

Closed sivaxsan closed 1 month ago

sivaxsan commented 1 year ago

Describe the bug Uploaded image from local workstation size shows empty in prism central ; but if I upload the image via prism central GUI - it shows correct image size.

Note: Image has been created via redhat image builder

To Reproduce Steps to reproduce the behavior:

Stack trace

Expected behavior A clear and concise description of what you expected to happen. image upload with correct image size .

Additional context Add any other context about the problem here.

sivaxsan commented 1 year ago

tried alternate option for source.

using source_uri:
but getting fatal: [localhost]: FAILED! => { "changed": false,

sivaxsan commented 1 year ago

my code:

sivaxsan commented 1 year ago

as I declared validate_certs is false, not sure, why still it looking for peer's certificate.

bhati-pradeep commented 1 year ago

hi @sivaxsan, can you share Prism Central and Nutanix Ansible version you are using ? I can check.

sivaxsan commented 1 year ago

Hi ,

Ansible version is : core 2.13.5 Prism Central version is : 2022.6 NCC version: 4.6.0.1 LCM version : 2.6.0.1

Note: If I use REST API - upload image size shows correct size.

Thanks Siva

bhati-pradeep commented 1 year ago

Hi @sivaxsan, Can you share response of playbook task once task finishes. You can mask sensitive details. I tried in my local and it works fine for me. Wanted to check size attribute in response. Thanks.

bhati-pradeep commented 1 year ago

Also if size never comes in the UI or it comes after some time ?

sivaxsan commented 1 year ago

Image size never comes shows in the UI. I couldn't use public github in my office laptop. so, it is difficult to update the logs. Also, playbook doesn't shows any errors and it completed successfully.

As I observed, couldn't see any issues , if I use RESTAPI and able to see the image size and use it for OS build.

nutanix.ncp.ntnx_images: : plays shows successful, but doesn't show image size and couldn't able to use it for OS build.

bhati-pradeep commented 1 year ago

Are you able to create VM from image ?

bhati-pradeep commented 1 year ago

If you can print result of task. Check you check response.status.resources.size_bytes is set or not.

sivaxsan commented 1 year ago

Hi, response.status.resources shows only below options:

resources: { architecture: x86_84 image_type: DISK IMAGE } state : Complete

I couldn't see size_bytes in the output

bhati-pradeep commented 1 year ago

hi @sivaxsan, Can you create nutanix support ticket ? This will need a call for for more debugging.

sivaxsan commented 1 year ago

I already raised a case with Nutanix, they advised to raise a issue in nutanix.ansible git repo. Nutanix case: 01435754 [As they mentioned : Issue relates open source project actively maintained by Nutanix, and will get support directly from github

bhati-pradeep commented 1 year ago

Okay. Let me get back to you with more details and will try to reproduce on my local setup as well.

bhati-pradeep commented 11 months ago

@sivaxsan Are you still facing this issue ?

bhati-pradeep commented 1 month ago

Closing this ticket due to inactivity. Please reopen if you face it again.