Bug 1228317
| Summary: | rdo-manager: Running ahc-match when there's a registered host with no disks configured fails: Unable to match requirements on the following available roles in /etc/ahc-tools/edeploy: control, compute | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Alexander Chuzhoy <sasha> | ||||||
| Component: | rdo-manager | Assignee: | Imre Farkas <ifarkas> | ||||||
| Status: | CLOSED NOTABUG | QA Contact: | yeylon <yeylon> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | Kilo | CC: | athomas, mburns, sasha, srevivo | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | Kilo | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2015-06-18 18:37:58 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Could you please post the output of ironic node-show command? Created attachment 1034782 [details]
output from ironic node-show
I couldn't reproduce it based on the discovered node properties. Could you please also include the content of the state and the *.spec files? So the default.cmdb file needs to be placed now under /etc/ahc-tools/edeploy. The issue sill reproduces. The file are attached in the gzipped tar. Created attachment 1040552 [details]
state-spec
This isn't a bug.
The problem is in the content of the default.cmdb file. The culprits were found:
{'target_raid_configuration': {
'logical_disks': ({'controller': 'RAID.Integrated.1-1',
number_of_physical_disks': 2,
'disk_type': 'hdd',
'is_root_volume': 'true',
'raid_level': '1',
'size_gb': 50,
'volume_name': 'root_volume'},)}}
1. Missing a quote before the "number_of_physical_disks" string.
2. This should be a list:
[ {'target_raid_configuration': {
'logical_disks': ({'controller': 'RAID.Integrated.1-1',
'number_of_physical_disks': 2,
'disk_type': 'hdd',
'is_root_volume': 'true',
'raid_level': '1',
'size_gb': 50,
'volume_name': 'root_volume'},)}}]
|
rdo-manager: Running ahc-match when there's a registered host with no disks configured fails: Unable to match requirements on the following available roles in /etc/ahc-tools/edeploy: control, compute The error is: ERROR:ahc_tools.match:Failed to match node uuid: 7fc7bd62-a5e7-409e-81be-689d5574cb5f. Error was: Unable to match requirements on the following available roles in /etc/ahc-tools/edeploy: control, compute ERROR:ahc_tools.match:The following nodes did not match any profiles and will not be updated: 7fc7bd62-a5e7-409e-81be-689d5574cb5f Environment: instack-undercloud-2.1.0-4.el7ost.noarch ahc-tools-0.1.1-2.el7ost.noarch openstack-ironic-discoverd-1.1.0-3.el7ost.noarch Steps to reproduce: 1. First register/discover the node(s) 2. Run "which instack-ironic-deployment" 3. Run "source /home/stack/stackrc" 4. Create the file /etc/edeploy/default.cmdb with the following content: {'target_raid_configuration': { 'logical_disks': ({'controller': 'RAID.Integrated.1-1', number_of_physical_disks': 2, 'disk_type': 'hdd', 'is_root_volume': 'true', 'raid_level': '1', 'size_gb': 50, 'volume_name': 'root_volume'},)}} 5. Add the drac driver/details for the same host you check the bios for (use "ironic node-show <nodeID>" to get the IP of the management). ironic node-update $NODE add driver_info/drac_username='username' | ironic node-update $NODE add driver_info/drac_password='password' | ironic node-update $NODE add driver_info/drac_host='management IP' | ironic node-update $NODE add driver='pxe_drac' 6. Run ironic node-vendor-passthru --http-method GET $NODE list_virtual_disks 7. Run "sudo yum install -y ahc-tools" 8. Run "sudo -E ahc-match" Result: ERROR:ahc_tools.match:Failed to match node uuid: 7fc7bd62-a5e7-409e-81be-689d5574cb5f. Error was: Unable to match requirements on the following available roles in /etc/ahc-tools/edeploy: control, compute ERROR:ahc_tools.match:The following nodes did not match any profiles and will not be updated: 7fc7bd62-a5e7-409e-81be-689d5574cb5f Expected result: No errors.