[Crowbar] Crowbar hackday iso mysql proposal fail

Andi_Abes at Dell.com Andi_Abes at Dell.com
Sun Mar 11 11:07:19 CDT 2012


On second take - Ignore those nasty workarounds!!!

Poking some more, once the barclamp is imported, the nodes should be updated with the new barclaps' repositories on their next chef client run.
You might just be a bit too fast, and try to deply mysql, before the system had a chance to update the repo list.

So, either: take a break after import of the barclamps.  OR
After you're done importing all the barclamps, but before deploying nodes, force a chef run with:
knife ssh "name:d*" chef-client.

This will create the missing apt source lists, before those packages are required.

(there seems to be an ordering problem - where if you add mysql, it gets put on the run list before the provisioner, which will update the sources... that's the real problem/fix)



-----Original Message-----
From: crowbar-bounces On Behalf Of Abes, Andi
Sent: Sunday, March 11, 2012 11:55 AM
To: btaylor at alpharender.net; crowbar
Subject: Re: [Crowbar] Crowbar hackday iso mysql proposal fail

So, this is appears to be a side affect of the import and refactoring of the packages on the admin node to make it more sane.... (this is brand new stuff!!)

Here are a few possible workarounds:

* bad hack:
On the admin, cd /tftpboot/ubuntu-12.04/crowbar-extra
Copy the files from all the subdirectories into this one.
Then run:
# dpkg-scanpackages . |gzip -9 >Packages.gz # knife ssh 'node:*' apt-get update

* elegant solution, but more work (this is what will be happening once we fix it) On the compute node (as root):
Copy  /etc/apt/sources.list/10-barclamp-crowbar.list to 10-barclamp-mysql.list in the same location.
Edit the new file, and update crowbar to mysql at the end of the url.

Run apt-get update.
Re-run chef-client
Mysql installs happily

If you have multiple nodes to do this on, you can use knife ssh to apply to them all.
Also, it seems that you'd need to do this for each imported barclamp. You could update the files, and run apt-get update and chef client only once.



Hope this helps, and thanks for reporting !

(making excuses section - If you build the ISO with the barclamps, you will not have this issue - we were developing in parallel paths while getting ready for the fest).


-----Original Message-----
From: crowbar-bounces On Behalf Of Bryan Taylor
Sent: Sunday, March 11, 2012 10:55 AM
To: crowb
Subject: [Crowbar] Crowbar hackday iso mysql proposal fail

Hello,

  I am trying to follow the hackday youtube videos plus the VMware workstation install guide. I have setup admin node and two VMs which are both ready. I also imported the barclamps. I tried to build the proposal onto node1 but it fails stating from the logs:

FATAL: Chef::Exceptions::Package: package[mysql-ruby] (mysql::client line 39) had an error: Chef::Exceptions::Package:No version specified, and no candidate version available for libmysql-ruby.


I tried adding the Mysql-client option to node-1 which is where I believe the dep for libmysql-ruby comes from. I tried to remove mysql-server and just provision node-1 with mysql-client, then go back and apply with with mysql-server. Unfortunately this does not work either.

Help

Bryan

_______________________________________________
Crowbar mailing list
Crowbar at dell.com
https://lists.us.dell.com/mailman/listinfo/crowbar
For more information: https://github.com/dellcloudedge/crowbar/wiki

_______________________________________________
Crowbar mailing list
Crowbar at dell.com
https://lists.us.dell.com/mailman/listinfo/crowbar
For more information: https://github.com/dellcloudedge/crowbar/wiki



More information about the Crowbar mailing list