In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
First, view information
1) Authentication
[root@rong ~] # cat keystonerc_admin unset OS_SERVICE_TOKEN export OS_USERNAME=admin export OS_PASSWORD='8d07f364025d414e' export OS_REGION_NAME=RegionOne export OS_AUTH_URL= http://192.168.222.128:5000/v3 export PS1=' [\ u @\ h\ W (keystone_admin)]\ $'export OS_PROJECT_NAME=adminexport OS_USER_DOMAIN_NAME=Defaultexport OS_PROJECT_DOMAIN_NAME=Defaultexport OS_IDENTITY_API_VERSION=3 [root@rong ~] # source keystonerc_admin [root@rong ~ (keystone_admin)] #
2) check the specifications. The following specifications are available by default.
[root@rong ~ (keystone_admin)] # openstack flavor list+----+ | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public | + -+ | 1 | m1.tiny | 1 | 0 | 1 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True | 3 | m1.medium | 4096 | 40 | 0 | 2 | True | | 4 | M1.large | 8192 | 80 | 0 | 4 | True | 5 | m1.xlarge | 16384 | 16384 | 8 | True | +-+ [root@rong ~ (keystone_admin)] #
3) View the image
[root@rong ~ (keystone_admin)] # openstack image list+--+ | ID | Name | Status | +- -+ | fd04d446-f1cb-4aa8-9f72-f414a71faefc | cirros | active | | 587655c8-87ea-4c3f-bdba-41a763667d57 | cirrosnew | active | +-- +
Because the default image size is incorrect, create a virtual machine and report an error. A new image is uploaded here. For more information, please see "troubleshooting".
4) View the network
[root@rong ~ (keystone_admin)] # openstack network list+--+-+--+ | ID | | Name | Subnets | +-- +-- + | 573ad869-aa73-4c8c-a57c-033590c4f8f1 | private | | | 1f5a428e-e7f4-430b-9bdd-adedf2692d5b | | 6aa84627-9631-4c2c-8549-2fc7880d8d18 | public | ae58274e-eaf3-467f-adc1-dec7b39a3084 | +-- +-- + |
Second, create a virtual machine
1) create through the openstack interface
2) View the virtual machine
3) enter the virtual machine operating system through VNC
Third, troubleshooting
1) OpenStack error: Host is not mapped to any cell
Create a virtual machine with the command: Host is not mapped to any cell, and after executing nova-manage cell_v2 discover_hosts-- verbose, you can create a virtual machine.
Reference: https://blog.51cto.com/3241766/2328408
2) openstack vnc error: failed to connect to server (code: 1006)
Log in to openstack using Firefox in vmware, log in through VNC and report an error failed to connect to server (code: 1006). After adding hostname and IP address resolution to / etc/hosts, you can open VNC.
Reference: https://blog.51cto.com/01000/1926756
3) there is a problem with the default cirror image, which causes the creation of a virtual machine to report an error
Troubleshooting idea: at the beginning, creating a virtual machine through the command can run, but creating a virtual machine through the interface reported the error of did not finish being created even after we waited 22 seconds, and it was also wrong to view the disk. I thought that cinder was not configured, but it was normal to create a disk separately. I looked at cinder's log, found lvm': Image is not in qcow2 format, and checked the default mirror. It was found that the mirror was only 4k, while the normal cirros should be about 13m. So upload the new cirros, create the virtual machine again, and the problem is solved.
Grep ERROR / var/log/nova/nova-compute.log2020-03-07 01 ERROR nova.compute.manager 08VR 45.770 39342 ERROR nova.compute.manager [req-bb578158-d197-49c6-b175-3aea0c9c5dad 25fccd945563495ba21acd0abea6fdbe 7f63d6be4a7c446a831f4a4d0bcc8201-default default] [instance: e4234603-8aee-45f2-90ac-948761dd5b2a] Build of instance e4234603-8aee-45f2-90ac-948761dd5b2a aborted: Volume 3c39cc33-dd25-4eef-bd1c-b51dc9caa724 did not finish being created even after we waited 22 seconds or 7 attempts. And its status is error.: BuildAbortException: Build of instance e4234603-8aee-45f2-90ac-948761dd5b2a aborted: Volume 3c39cc33-dd25-4eef-bd1c-b51dc9caa724 did not finish being created even after we waited 22 seconds or 7 attempts. And its status is error. Grep ERROR / var/log/cinder/volume.log2020-03-07 01 ERROR cinder.volume.flows.manager.create_volume 20 ERROR oslo_messaging.rpc.server 43.686 4216 ERROR cinder.volume.flows.manager.create_volume [req-2bdb180a-5236-4c78-b9f9-45a55dae1784 25fccd945563495ba21acd0abea6fdbe 7f63d6be4a7c446a831f4a4d0bcc8201-default default] Volume 8a015ea9-b34a-47a8-86b7-f40721b279cd: create failed2020-03-07 01 Ride 20 ERROR cinder.volume.flows.manager.create_volume 43.708 4216 ERROR oslo_messaging.rpc.server [req-2bdb180a-5236-4c78-b9f9-45a55dae1784 25fccd945563495ba21acd0abea6fdbe 7f63d6be4a7c446a831f4a4d0bcc8201-default default] Exception during message handling: ImageCopyFailure: Failed to copy image to volume: qemu -img: Could not open'/ var/lib/cinder/conversion/tmpx_Egn4rong@lvm': Image is not in qcow2 format
Upload a new image cirros-0.4.0-x86_64-disk.img via winscp:
Upload via command:
Openstack image create "cirrosnew"\-- file cirros-0.3.5-x86_64-disk.img\-- disk-format qcow2-- container-format bare\-- public [root@rong ~ (keystone_admin)] # openstack image show cirrosnew+-+-- - -- + | Field | Value | | +-+- -+ | checksum | 443b7623e27ecf03dc9e01ee93f67afe | | container_format | bare | | | created_at | 2020-03-07T10:11:31Z | | | disk_format | qcow2 | | file | | | / v2/images/587655c8-87ea-4c3f-bdba-41a763667d57/file | | id | 587655c8-87ea-4c3f-bdba-41a763667d57 | | | min_disk | 0 | | | min_ram | 0 | | | name | cirrosnew | | | owner | 7f63d6be4a7c446a831f4a4d0bcc8201 | | properties | os_hash_algo='sha512' | Os_hash_value='6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78' Os_hidden='False' | | protected | False | | schema | / v2/schemas/image | | size | 12716032 | | | status | active | | | tags | | | updated_at | 2020-03-07T10:11:33Z | | | virtual_size | None | | visibility | public | | | +- - -+ [root@rong ~ (keystone_admin)] #
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.