Triple0 RHOSP10: openstack baremetal import --json ~/instackenv.json stuck

asked 2018-06-16 05:20:20 -0600

Hi, Trying to deploy a RHOSP10 deployment using VMs, I get stucked in the import phase. I successfully deployed the undercloud node (director).

My instackenv.json file is:

   [stack@undercloud ~]$ jq . << EOF > ~/instackenv.json
{
  "ssh-user": "stack",
  "ssh-key": "$(cat ~/.ssh/id_rsa)",
  "power_manager": "nova.virt.baremetal.virtual_power_driver.VirtualPowerManager",
  "host-ip": "192.168.122.1",
  "arch": "x86_64",
  "nodes": [
    {
      "pm_addr": "192.168.122.1",
      "pm_password": "$(cat ~/.ssh/id_rsa)",
      "pm_type": "pxe_ssh",
      "mac": [
        "$(sed -n 1p /tmp/nodes.txt)"
      ],
      "cpu": "2",
      "memory": "4096",
      "disk": "60",
      "arch": "x86_64",
      "pm_user": "stack"
    },
    {
      "pm_addr": "192.168.122.1",
      "pm_password": "$(cat ~/.ssh/id_rsa)",
      "pm_type": "pxe_ssh",
      "mac": [
        "$(sed -n 2p /tmp/nodes.txt)"
      ],
      "cpu": "4",
      "memory": "2048",
      "disk": "60",
      "arch": "x86_64",
      "pm_user": "stack"
    },
    {
      "pm_addr": "192.168.122.1",
      "pm_password": "$(cat ~/.ssh/id_rsa)",
      "pm_type": "pxe_ssh",
      "mac": [
        "$(sed -n 3p /tmp/nodes.txt)"
      ],
      "cpu": "4",
      "memory": "2048",
      "disk": "60",
      "arch": "x86_64",
      "pm_user": "stack"
    }
  ] 
} 
EOF

Then, when I try to launch the import, I obtain the following:

[stack@ospd ~]$ openstack baremetal import --json ~/instackenv.json
Started Mistral Workflow. Execution ID: 0da09efd-3a03-42e3-ac8b-b028bca53e11
Successfully registered node UUID 068d5b11-e0a3-4afb-9c59-8ac9baad178b
Successfully registered node UUID 0a01b45b-bfa8-4053-8b87-c5be3937abb5
Successfully registered node UUID feb95d24-0b6e-46b5-8ecd-067e3c84a63a
Started Mistral Workflow. Execution ID: 83489654-178e-4a26-a8ac-fe4dc9572fa7
Failed to set nodes to available state:  IronicAction.node.set_provision_state failed: <class 'ironicclient.common.apiclient.exceptions.BadRequest'>: The requested action "provide" can not be performed on node "068d5b11-e0a3-4afb-9c59-8ac9baad178b" while it is in state "enroll".
 IronicAction.node.set_provision_state failed: <class 'ironicclient.common.apiclient.exceptions.BadRequest'>: The requested action "provide" can not be performed on node "0a01b45b-bfa8-4053-8b87-c5be3937abb5" while it is in state "enroll".
 IronicAction.node.set_provision_state failed: <class 'ironicclient.common.apiclient.exceptions.BadRequest'>: The requested action "provide" can not be performed on node "feb95d24-0b6e-46b5-8ecd-067e3c84a63a" while it is in state "enroll".

Any clue?

edit retag flag offensive close merge delete