Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of upload failure due to excessive image size in openstack

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to solve the problem of upload failure due to large mirroring in openstack. Many people may not know much about it. In order to let everyone know more, Xiaobian summarizes the following contents for everyone. I hope you can gain something according to this article.

1. First create a dummy file (0 byte) cd /opt/image/touch dummy2. Then upload the dummy file as a mirror (seconds) glance image-create --name win7 --file /opt/image/dummy --disk-format qcow2 --container-format bare --visibility public --progress3. Query image id+--------------------------------------+| Property | Value |+------------------+--------------------------------------+| checksum | d41d8cd98f00b204e9800998ecf8427e || container_format | bare || created_at | 2018-05-17T01:23:36Z || disk_format | qcow2 || id | f7fbe797-184a-4c5d-ad67-67cb254539a2 || min_disk | 0 || min_ram | 0 || name | win7 || owner | 3bc17302ef9f465ba390fa036a35a34e || protected | False || size | 0 || status | active || tags | [] || updated_at | 2018-05-17T01:23:37Z || virtual_size | None || visibility | public |+--------------------------------------67cb 254539a2 This file cp /opt/image/win7.qcow2 f7fbe797-184a-4c5d-ad67-67cb254539a26. Modify size

Since glance calculates size and md5sum and saves the database when uploading the dummy, it is obviously different from the calculation result of the real mirror.

You can change it by directly modifying the data.

-rw-r--r-- 1 stack stack 7836008448 May 17 09:26 f7fbe797-184a-4c5d-ad67-67cb254539a2

Change 7836008448 to database

After reading the above content, do you have any further understanding of how to solve the upload failure due to large mirror in openstack? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report