Got it

HCS application bare-metal failure prompted "Failed to provision the instance" Highlighted

Latest reply: May 8, 2022 04:58:00 546 4 22 0 0

Hello, everyone!

Symptom

Onsite BMS instances fail to be applied for, and the message "Failed to provision instance" is displayed, as shown in the following figure.

failed information


Analysis Process

1. Log in to the active node where the nova-compute-ironic service is deployed and view the /var/log/fusionsphere/component/nova-compute-ironic00x file. The following error information is displayed:

2


2. Apply for a bare metal instance again. Log in to the BMC of the host and check the PXE status. The server is powered off after the image reaches 95%, as shown in the following figure.

3

4


3. Collect the serial port logs (ipa logs) of the server because no more logs are displayed.

Ironic-python-agent (ipa) logs of the MiniOS. PXE operations (expansion, formatting, and instance delivery) are required for bare metal servers. If PXE successfully enters the miniOS but the corresponding operations fail, check the ironic-conductor logs. If the ironic-conductor logs cannot be located, You need to view the IPA logs.

IPA logs are stored on the remote bare metal server and the MiniOS is a memory OS. You need to use the serial port redirection function of the server to print logs in real time for storage and collection.

· Run the ipmitool -I lanplus -H {bmc_ip} -U {bmc_username} -P {bmc_passwd} sol activate command on the controller node to replace bmc_ip, bmc_username, and bmc_passwd with the BMC information of the corresponding BMS node.

· Enable the log recording function of Xshell, as shown in the following figure.

xshell

· Trigger the corresponding operation. After the BMS is powered on, the startup self-test, PXE process, miniOS startup, and IPA running logs are displayed in the command output, and Xshell records logs.



4. Check the serial port logs. The error message "Stderr:' parted: invalid token: primary\nError: Expecting a partition type.\n'" is displayed, as shown in the following figure.

6

The error message indicates that no primary partition is available. In the type 1 scenario, the system disk has a configdrive partition that stores network configuration data delivered by the cloud platform to the OS. This partition must be the primary partition. The MBR partition format can have only 4 primary partitions. Failed to apply for a bare machine if the primary partition is fully occupied.


5. Restart the host and log in to the miniOS to check the host disk partition. The primary partition is occupied, as shown in the following figure.

7


Processing

1. Create an image again and reserve a primary partition that is not used.

2. Register the image on the.

3. Apply for a BMS instance again.


Suggestion and Summary

When creating an image, reserve a disk for a primary partition. In the type 1 scenario, the system disk has a configdrive partition that stores network configuration data delivered by the cloud platform to the OS. This partition must be the primary partition. The MBR partition format can have only 4 primary partitions. Failed to apply for a bare machine if the primary partition is fully occupied.

That's all, thanks!

  • x
  • convention:

olive.zhao
Admin Created Apr 22, 2022 01:56:05

Thanks for your sharing!
View more
  • x
  • convention:

wissal
MVE Created May 6, 2022 17:17:35

Very well explained case!
View more
  • x
  • convention:

NTan33
Created May 8, 2022 04:17:39

A good case study.
View more
  • x
  • convention:

Saqibaz
Created May 8, 2022 04:58:00

Thanks for sharing
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.