Documentation error on node enrollment

Bug #1587994 reported by Bruno Cornec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bifrost
Fix Released
Low
Unassigned

Bug Description

In the README.rst it is said that enrollment can be performed with:

ansible-playbook -i inventory/localhost -vvvv enroll.yaml -e baremetal_csv_file=inventory/baremetal.csv

But when you try to do it, you get:

No config file found; using defaults
Loaded callback default of type stdout, v2.0
1 plays in enroll.yaml

PLAY [Provide deprecation notice] **********************************************

TASK [Error] *******************************************************************
task path: /root/bifrost/playbooks/enroll.yaml:8
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"msg": "Legacy roles have been removed. Please use dynamic inventory and enroll-dynamic.yaml"}, "module_name": "fail"}, "msg": "Legacy roles have been removed. Please use dynamic inventory and enroll-dynamic.yaml"}

PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1

So it seems this part of the documentation should be removed and that documenting enroll-dynamic.yaml instead would be necessary.

Revision history for this message
Stephane Miller (stephaneeee) wrote :

Hi Bruno,

I believe this has already been changed in the README. If you are still seeing the incorrect text, can you please confirm that you have a recent checkout of bifrost? Thanks.

Changed in bifrost:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Bruno Cornec (bruno-cornec) wrote :
Download full text (14.8 KiB)

With bifrost 2.0.0, trying again to enroll nodes even using the example given in the inventory directory still fails (error in playbook and nodes created do not validate)

[bruno@bifrost2 playbooks]$ export BIFROST_INVENTORY_SOURCE=`pwd`/inventory/baremetal.json.example
[bruno@bifrost2 playbooks]$ ansible-playbook -vvvv -i inventory/bifrost_inventory.py enroll-dynamic.yaml
No config file found; using defaults
Loaded callback default of type stdout, v2.0
[...]
fatal: [sshexample0 -> localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"api_timeout": null, "auth": {"endpoint": "http://localhost:6385/"}, "auth_type": "None", "availability_zone": null, "cacert": null, "cert": null, "chassis_uuid": null, "cloud": null, "driver": "agent_ssh", "driver_info": {"deploy": {"deploy_kernel": "http://10.3.8.126:8080/ipa.vmlinuz", "deploy_ramdisk": "http://10.3.8.126:8080/ipa.initramfs"}, "power": {"deploy_kernel": "http://10.3.8.126:8080/ipa.vmlinuz", "deploy_ramdisk": "http://10.3.8.126:8080/ipa.initramfs", "ssh_address": "192.168.122.1", "ssh_key_filename": "/home/ironic/.ssh/id_rsa", "ssh_port": 22, "ssh_username": "ironic", "ssh_virt_type": "virsh"}}, "endpoint_type": "public", "ironic_url": "http://localhost:6385/", "key": null, "name": "sshexample0", "nics": [{"mac": "00:00:00:f9:32:f6"}], "properties": {"cpu_arch": "x86_64", "cpus": "1", "disk_size": "10", "ram": "3072"}, "region_name": null, "skip_update_of_masked_password": null, "state": "present", "timeout": 180, "uuid": "00000000-0000-0000-0000-000000000001", "verify": true, "wait": true}, "module_name": "os_ironic"}, "msg": "Error registering machine with Ironic (Inner Exception: No valid host was found. Reason: No conductor service registered which supports driver agent_ssh. (HTTP 400))"}
changed: [basicipmiexample0 -> localhost] => {"changed": true, "invocation": {"module_args": {"api_timeout": null, "auth": {"endpoint": "http://localhost:6385/"}, "auth_type": "None", "availability_zone": null, "cacert": null, "cert": null, "chassis_uuid": null, "cloud": null, "driver": "agent_ipmitool", "driver_info": {"deploy": {"deploy_kernel": "http://10.3.8.126:8080/ipa.vmlinuz", "deploy_ramdisk": "http://10.3.8.126:8080/ipa.initramfs"}, "power": {"deploy_kernel": "http://10.3.8.126:8080/ipa.vmlinuz", "deploy_ramdisk": "http://10.3.8.126:8080/ipa.initramfs", "ipmi_address": "192.168.2.20", "ipmi_password": "ADMIN_PASSWORD", "ipmi_username": "ADMIN"}}, "endpoint_type": "public", "ironic_url": "http://localhost:6385/", "key": null, "name": "basicipmiexample0", "nics": [{"mac": "00:00:00:23:34:56"}, {"mac": "00:00:00:12:34:57"}], "properties": {"cpu_arch": "x86_64", "cpus": "16", "disk_size": "235", "ram": "32760"}, "region_name": null, "skip_update_of_masked_password": null, "state": "present", "timeout": 180, "uuid": "00000000-0000-0000-0000-000000000002", "verify": true, "wait": true}, "module_name": "os_ironic"}, "provision_state": "available", "uuid": "00000000-0000-0000-0000-000000000002"} ...

Dmitry Tantsur (divius)
Changed in bifrost:
status: Incomplete → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.