www.TipsNtrapS.com: Technodrone: Nova-Docker on Juno

After enabling the docker as a hyper wiser support on my test one node open-stack implementation.

 

I added another host in my nova compute farm, done slimier steps as in first (controller node)

but when I was booting up VM on that compute node It was giving error as “NoValidHost found”.

On digging found that there was issues in neutron configuration. Dont know why packstack configured properly the neutron.conf.

 

Have to copy the neutron.conf manually from controller to new nova compute host.

 

New Error : Not Found (\”No such image: base-centos6\”)

 

Which turns out that the docker image base-centos6 was not present on the local nova box ( although present in glance ). So looks like while booting the docker vm its not able

to pull it from glance. ( will debug it later ) but for now. Have exported the image from controller as tar and imported on nova compute host.

 

docker save image_name > image_name.tar

scp image_name.tar newhost:/tmp

ssh newhost

docker load < /tmp/image_name.tar

 

Once again tried booting the VM on the new hosts , but this time the error was

 

” Command: sudo nova-rootwrap /etc/nova/rootwrap.conf ln -sf /proc/11629/ns/net /var/run/netns/e59cc9600a720222ce7b746daa9″, “code”: 500, “details”: ”  File \”/usr/lib/python2.7/site-packages/nova/compute/manager.py\”, line 2033, in _do_build_and_run_instance”

it turns out that the /etc/nova/rootwrap.d/docker.filters was not present on the new host. Once again copied that from controller to new hosts.

 

This time the nova boot was successfull.

 

So, although Nova – Docker works , you need to hack couple of things to get it working.

 

Happy Hacking

 

Closing the stdin in Bash script

For one of my requirement my script is behaving oddly and the reason come out was its stdin was open ( will right in detail later)

 

to fix the issue I need to close the stdin

reference – http://superuser.com/a/364519/439394

 

Closing File Descriptors

n<&-

Close input file descriptor n.

0<&-, <&-

Close stdin.

n>&-

Close output file descriptor n.

1>&-, >&-

Close stdout.

Bas

MegaCLI, Raid Levels

Unix Blog

Common invocations of MegaCLI

Get an Overview of controllers and attached disk arrays

./MegaCli64 -AdpAllInfo -aALL (extracted info below)
./MegaCli64 -CFGDsply -aALL  shows same info, with same verbosity

Adapter #0
========================================
Product Name    : PERC H800 Adapter Serial No       : 25B0088

Link Speed           :… Number of Frontend Port:… Device Interface  : PCIENumber of Backend Port: 8 Port  :  Address0        500c04f2e958eebf 1        500c04f2e958ee3f 2        0000000000000000 3        0000000000000000 4        0000000000000000 5        0000000000000000 6        0000000000000000 7        0000000000000000
Device Present
 ================
 Virtual Drives    : 1
 Degraded          : 0   Offline               :…Physical Devices  : 13
 Disks                : 12   Critical Disks     : 0   Failed Disks      :…

(snip)

Adapter #1
==============================================================================
Product Name    : PERC 6/i Integrated
Serial No       : 1122334455667788

Device Present
 ================
 Virtual Drives      : 1   Degraded            : 0   Offline                :…Physical Devices  : 3   Disks                  : 2   Critical Disks       : 0…

View original post 1,323 more words

python – How to run Ansible without specifying the inventory but the host directly? – Stack Overflow

I know this question is really old but think that this little trick might helpful for future users who need help for this:ansible-playbook -i ‘10.254.3.133,’ site.ymlif you run for local host:ansible-playbook -i ‘localhost,’ –connection=local site.ymlThe trick is that after ip address/dns name, put the comma inside the quotes.Hope this will help.

via python – How to run Ansible without specifying the inventory but the host directly? – Stack Overflow.