<div dir="ltr"><div>update to an old question:</div><div>I have gotten around this issue.</div><div><br></div><div>I'm not sure how I got around this issue, but my theory is something I noticed quite by accident.</div><div><br></div><div>The servers I was having these troubles on use 80GB hard drives, but they also have a flash drive in them, for small OS deployments. I stumbled across a /dev/sda6 partition on these flash drives.</div><div><br></div><div>On this partition I found 2 files: meta-data and user-data. In those files was the old node name I mentioned in the original post. This partition must have been detected, and these stale files were used by fuel-agent when the newly provisioned node first booted, even though they were booting from the 80GB drive which had its own /dev/sda6 partition.</div><div><br></div><div>I suspect the stale/incorrect /dev/sda6 is probably is from Fuel 8 when we tried to deploy on some of these flash drives...</div><div><br></div><div>once I deleted the stale/incorrect /dev/sda6 then theprovisioning and deployment went perfectly</div><div><br></div><div>thanks</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">-- Jim</div></div>
<br><div class="gmail_quote">On Thu, Sep 28, 2017 at 5:02 PM, Jim Okken <span dir="ltr"><<a href="mailto:jim@jokken.com" target="_blank">jim@jokken.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="gmail-m_-3680509430701275852gmail-MsoPlainText">I ran  "fuel2 node
update -H blade13 20" just to get out of the node-* naming convention, as
someone suggested<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">The deploy still names the node node-11 and provisioning
fails.<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">digging a little more, i see it might have to do with the
fuel-agent cloud-init scripts. <span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">in the cloud-init.log on the new node I see the node name
being set to node-11!<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">this isnt node-11. this was node-20, but I renamed it to
blade13 with the command "fuel2 node update -H blade13 20"<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">i also noted that after the cloud-init scripts ran at the
end the first boot of the new provisioned OS, that in the Fuel GUI, the FQDN
field became <a href="http://node-11.ourdomain.com" target="_blank">node-11.ourdomain.com</a> (before it was <a href="http://bootstrap.ourdomain.com" target="_blank">bootstrap.ourdomain.com</a>)<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">(in the same window Hostname still show as blade13)<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">But FQDN in the Fuel2 CLI output still shows  <a href="http://node-20.ourdomain.com" target="_blank">node-20.ourdomain.com</a>!!!<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">[fuel2 node show 20<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| id                 
| 20                            <wbr>                              <wbr>                              <wbr>            
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| name               
| Untitled (68:58)                       <wbr>                                <wbr>                              <wbr>  |<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| status             
| ready                         <wbr>                              <wbr>                              <wbr>            
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| os_platform        
| ubuntu                        <wbr>                              <wbr>                              <wbr>            
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| roles              
| [u'compute']                  <wbr>                              <wbr>                              <wbr>            
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| kernel_params      
| None                          <wbr>                              <wbr>                              <wbr>            
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| pending_roles      
| []                            <wbr>                              <wbr>                              <wbr>          
  |<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| hostname           
| node-20                       <wbr>                              <wbr>                              <wbr>            
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| fqdn               
| <a href="http://node-20.dialogic.com" target="_blank">node-20.dialogic.com</a>          <wbr>                              <wbr>                              <wbr>    
        |<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">| platform_name      
| ProLiant BL460c Gen9                          <wbr>                              <wbr>                          
|<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">where can i find the cloud init settings which are deploy
to new nodes?<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">i guess this has something to do with this file: /usr/share/fuel-agent/cloud-<wbr>init-templates/cloud_config_<wbr>ubuntu.jinja2<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">in that file I see <span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">hostname: {{ common.hostname }}<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">fqdn: {{ common.fqdn }}<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">please help me with an info you might have or let me know
that populates those 2 parts of the template?<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">Is there a database these values are all stored in on the
fuel server?<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">Thanks<span></span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText"><span> </span></p>

<p class="gmail-m_-3680509430701275852gmail-MsoPlainText">--Jim<span></span></p></div><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-3680509430701275852gmail_signature">-- Jim</div></div>
<br><div class="gmail_quote">On Tue, Sep 26, 2017 at 12:00 PM, Jim Okken <span dir="ltr"><<a href="mailto:jim@jokken.com" target="_blank">jim@jokken.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>also I should add, I dont have the original hard drives in the system so it isn't because it is booting the old OS where these node names were set. this is definitely the newly installed OS being given the wroing hostname</div><div><br></div><div><br></div><div><br></div>is there a database this is all kept in? maybe I could look around and find where these old node names are being saved?<div><br></div><div>thanks!</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-3680509430701275852m_5768171115765324565gmail_signature">-- Jim</div></div>
<br><div class="gmail_quote">On Mon, Sep 25, 2017 at 6:03 PM, Jim Okken <span dir="ltr"><<a href="mailto:jim@jokken.com" target="_blank">jim@jokken.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">hi all,<div><br></div><div>I am using Fuel 10.</div><div><br></div><div>i have 2 nodes I am trying to deploy as compute nodes. at one time in the past I was attempting to deploy them too. I assume back then their node names were node-11 and node-20.</div><div><br></div><div>they were never successfully deploy and now I've worked out their hardware issues and are attempting to deploy them again. now Fuel has given them the names node-80 and node-81.</div><div>(i may be at 80 in my node names but I only have 17 nodes so far)</div><div><br></div><div>the deploy of these 2 nodes does not get past installing Ubuntu. The nodes reboot after Ubuntu is installed and come up incorrectly as node-11 and node-20. After that Fuel sits for a long while and then gives an error (pasted at the end of email). I assume the nodes come up with the wrong name/ip/ssh-key and Fuel can't contact them.</div><div><br></div><div>I'm a novice at using the fuel and fuel2 cli's but I've tried deleting these nodes and removing from database. Then re-PXE boot the nodes and start a fresh deploy just to have them named node11 and 20 again. Fuel cli does show the correct host name for these nodes, but I've tried anyway to (re)set the host name for these node with no affect.</div><div><br></div><div><div>If I try to delete node-11 and node-20 I get this error</div><div>404 Client Error: Not Found for url: <a href="http://10.20.243.1:8000/api/v1/nodes/?ids=11" target="_blank">http://10.20.243.1:8000/api/v1<wbr>/nodes/?ids=11</a> (NodeCollection not found)</div></div><div><br></div><div>what can I do to get past this please?</div><div><br></div><div><br></div><div><br></div><div>Errors from the Fuel Astute log:</div><div><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-clamp gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-fixed-width-layout"><div id="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-content"><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-cluster-page"><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-content-box gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-tab-content gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-logs-tab"><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-row"><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-col-xs-12 gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-content-elements"><table class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-table gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-log-entries"><tbody><tr class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111error"><td>2017-09-25 21:06:28</td><td>ERROR</td><td>[1565] Error running provisioning: #<RuntimeError: Could not find any hosts in discovery data provided>
, trace: 
["/usr/share/gems/gems/astute-<wbr>10.0.0/lib/astute/mclient.rb:1<wbr>78:in `rescue in initialize_mclient'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/mclient.rb:16<wbr>1:in `initialize_mclient'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/mclient.rb:51<wbr>:in `initialize'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:421:in `new'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:421:in `run_shell_without_check'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:449:in `update_node_status'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:313:in `reboot_hook'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:38:in `block in process'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:26:in `each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:26:in `process'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/image_provisi<wbr>on.rb:117:in `reboot'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>273:in `soft_reboot'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>240:in `provision_piece'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>126:in `block (3 levels) in provision_and_watch_progress'"<wbr>,
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>309:in `call'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>309:in `sleep_not_greater_than'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>120:in `block (2 levels) in provision_and_watch_progress'"<wbr>,
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>119:in `loop'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>119:in `block in provision_and_watch_progress'"<wbr>,
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>118:in `catch'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>118:in `provision_and_watch_progress'<wbr>",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>52:in `provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/orchestrator.<wbr>rb:109:in `provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/dispat<wbr>cher.rb:46:in `provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/dispat<wbr>cher.rb:37:in `image_provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:172:in `dispatch_message'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:131:in `block in dispatch'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:64:in `call'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:64:in `block in each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:56:in `each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:56:in `each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:128:in `each_with_index'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:128:in `dispatch'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:106:in `block in perform_main_job'"]</td></tr><tr class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111error"><td>2017-09-25 21:06:26</td><td>ERROR</td><td>[1565] Error occured while provisioning:
#<Astute::MClientError: #<RuntimeError: Could not find any hosts in discovery data provided>
></td></tr><tr class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111error"><td>2017-09-25 21:06:26</td><td>ERROR</td><td>[1565] No more retries for MCollective client instantiation after exception: 
["/usr/share/gems/gems/mcollec<wbr>tive-client-2.8.4/lib/mcollect<wbr>ive/rpc/client.rb:507:in `discover'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/mclient.rb:16<wbr>7:in `initialize_mclient'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/mclient.rb:51<wbr>:in `initialize'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:421:in `new'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:421:in `run_shell_without_check'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:449:in `update_node_status'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:313:in `reboot_hook'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:38:in `block in process'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:26:in `each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/nailgun_hooks<wbr>.rb:26:in `process'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/image_provisi<wbr>on.rb:117:in `reboot'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>273:in `soft_reboot'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>240:in `provision_piece'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>126:in `block (3 levels) in provision_and_watch_progress'"<wbr>,
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>309:in `call'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>309:in `sleep_not_greater_than'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>120:in `block (2 levels) in provision_and_watch_progress'"<wbr>,
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>119:in `loop'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>119:in `block in provision_and_watch_progress'"<wbr>,
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>118:in `catch'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>118:in `provision_and_watch_progress'<wbr>",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/provision.rb:<wbr>52:in `provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/orchestrator.<wbr>rb:109:in `provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/dispat<wbr>cher.rb:46:in `provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/dispat<wbr>cher.rb:37:in `image_provision'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:172:in `dispatch_message'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:131:in `block in dispatch'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:64:in `call'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:64:in `block in each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:56:in `each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/task_q<wbr>ueue.rb:56:in `each'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:128:in `each_with_index'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:128:in `dispatch'",
 "/usr/share/gems/gems/astute-1<wbr>0.0.0/lib/astute/server/server<wbr>.rb:106:in `block in perform_main_job'"]</td></tr><tr class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111error"><td>2017-09-25 21:06:21</td><td>ERROR</td><td>[1565] Retrying RPC client instantiation after exception:
#<RuntimeError: Could not find any hosts in discovery data provided></td></tr><tr class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111error"><td>2017-09-25 21:06:16</td><td>ERROR</td><td>[1565] Retrying RPC client instantiation after exception:
#<RuntimeError: Could not find any hosts in discovery data provided></td></tr></tbody></table></div></div></div></div></div><div id="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-footer-spacer"></div></div><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail-footer">Version: 10.0</div></div><span class="gmail-m_-3680509430701275852m_5768171115765324565HOEnZb"><font color="#888888"><div><br><div class="gmail_extra"><br clear="all"><div><div class="gmail-m_-3680509430701275852m_5768171115765324565m_-5722418067409023111gmail_signature">-- Jim</div></div>
<br></div></div></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br></div>
</blockquote></div><br></div></div>