popularity question answers views user  
0
Errors when installing openstack using chef on Red Hat Enterprise Linux Server release 6.3 (Santiago)

Hi all,

I’m trying to setup openstack folsom using chef on Red Hat Enterprise Linux Server release 6.3 (Santiago). On the chef workstation, I have used git to download the openstack-chef-repo ( git clone https://github.com/mattray/openstack-chef-repo.git), used librarian to do some configuration. After uploading the cookbooks, updating the env production, and updating the roles. I used the following command to add the chef client:

knife node run_list add rhcn2.cluster1.com "role[allinone]"

I logged into the rhcn2.cluster1.com, and run “chef-client”, it output some errors. such as :


Recipe: apt::default * execute[apt-get-update] action run[2013-04-14T23:09:19-04:00] ERROR: execute[apt-get-update] (apt::default line 22) had an error: No such file or directory – apt-get update; ignore_failure is set, continuing

========================================================================

Error executing action run on resource ‘execute[apt-get-update]’

========================================================================

Errno::ENOENT

No such file or directory – apt-get update


It looks like it tried to use apt-get on redhat. I’m not sure if there is something wrong with the setting in my environment. Do you have any ideas about it?

Does chef support openstack folsom on redhat ?

Best Wishes. Thanks.

more →
0 52
jjh
 
0
ERROR: knife openstack flavor list

I am new to chef and knife. I have installed my own chef-server and I am able to hit the web-ui and create users. I can also access my OpenStack dashboard. However, when I go to use knife to test a simple task, I get an error:

$ knife openstack flavor list

ERROR: TypeError: can’t convert nil into String

$ knife -v

Chef: 11.4.0

My OS is Mac OS 10.8.3

Any suggestions on how to resolve?

more →
0 36  
0
Does knife openstack support regions?

The docs here: http://docs.opscode.com/plugin_knife_openstack.html show a —region argument that seems to be missing in the 0.6.2 gem. This is making it impossible for me to even try launching a server on Rackspace via the knife openstack plugin.

(Yes, I know there is a knife rackspace plugin – I’m really more interested in getting a quick-and-easy “knife openstack” environment working so that I can experiment with adding Openstack support to Ironfan.)

Here’s what I see from the 0.6.2 knife openstack plugin:

(KNIFE: dev) [nick@nick-mba ironfan-homebase] (master)$ knife openstack server list —help knife openstack server list (options)

-s, --server-url URL             Chef Server URL
-k, --key KEY                    API Client Key
    --[no-]color                 Use colored output, defaults to enabled
-c, --config CONFIG              The configuration file to use
    --defaults                   Accept default values for all questions
-d, --disable-editing            Do not open EDITOR, just accept the data as is
-e, --editor EDITOR              Set the editor to use for interactive commands
-E, --environment ENVIRONMENT    Set the Chef environment
-F, --format FORMAT              Which format to use for output
-u, --user USER                  API Client Username
    --openstack-api-endpoint ENDPOINT
                                 Your OpenStack API endpoint
-K, --openstack-password SECRET  Your OpenStack Password
-T, --openstack-tenant NAME      Your OpenStack Tenant NAME
-A, --openstack-username KEY     Your OpenStack Username
    --print-after                Show the data after a destructive operation
-V, --verbose                    More verbose output. Use twice for max verbosity
-v, --version                    Show chef version
-y, --yes                        Say yes to all prompts for confirmation
-h, --help                       Show this message
more →
0 68  
0 0 328