One of the other things I found is I am unable to properly set values that have
been set not writable.
For example, the ntp_servers value
[root@crowbar01 barclamps]# /opt/opencrowbar/core/bin/crowbar nodes get
crowbar01.okcstorage.local attrib ntp_servers
{
"id": 42,
"barclamp_id": 9,
"role_id": 28,
"name": "ntp_servers",
"description": "Addresses of the NTP servers to use for cluster-wide time
synchronization",
"writable": false,
"schema": null,
"order": 10000,
"map": "crowbar/ntp/servers",
"created_at": "2014-04-01T02:26:48.795Z",
"updated_at": "2014-04-01T02:26:48.796Z",
"value": null
}
If I try and set this value in the gui, I get the following error messages in
production.log
014-03-31 21:47:21.339 [31688] [INFO ] Started PUT "/api/v2/nodes/1/attribs/42"
for ::ffff:127.0.0.1 at 2014-03-31 21:47:21 -0500
2014-03-31 21:47:21.342 [31688] [INFO ] Processing by AttribsController#update
as JSON
2014-03-31 21:47:21.342 [31688] [INFO ] Parameters: {"value"=>"10.14.183.31",
"version"=>"v2", "node_id"=>"1", "id"=>"42"}
2014-03-31 21:47:21.342 [31688] [WARN ] Can't verify CSRF token authenticity
2014-03-31 21:47:21.349 [31688] [ERROR] EXCEPTION: Attrib ntp_servers is
read-only
2014-03-31 21:47:21.349 [31688] [ERROR] BACKTRACE:
Backtrace: http://pastebin.com/C2KFeXh3
If I do it from the command line.
[root@crowbar01 barclamps]# /opt/opencrowbar/core/bin/crowbar nodes set
crowbar01.okcstorage.local attrib ntp_servers to '{"value": "10.14.183.31"}'
{
"message": "Attrib ntp_servers is read-only",
"backtrace": [
Backtrace: http://pastebin.com/WTjWzMps
I get the same values when I try and edit other options that writable is false.
For example, Victor Lowther was awesome and added a schema for external servers
but I am unable to edit the values because
[root@crowbar01 barclamps]# /opt/opencrowbar/core/bin/crowbar nodes get
crowbar01.okcstorage.local attrib dns_servers
{
"id": 40,
"barclamp_id": 8,
"role_id": 25,
"name": "dns_servers",
"description": "DNS servers that all Crowbar clients should use",
"writable": false,
"schema": null,
"order": 10000,
"map": "crowbar/dns/nameservers",
"created_at": "2014-04-01T02:26:48.593Z",
"updated_at": "2014-04-01T02:26:48.595Z",
"value": [
"fc63:3746:5b92:1:63f3:9fc5:1e49:f5f6",
"192.168.124.10"
]
}
Any assistance would be greatly appreciated. If there is anything I can do to
help the community, please let me know. Thank you!
Justin Bovee
Master Engineer, Storage
Dell | Enterprise Support Services
Office Number: (512) 728-6035 ext. 7239536
M-F (8:00am - 5:00pm CST)
How am I doing? Email my manager
[email protected]<mailto:[email protected]> with any feedback
From: Hirschfeld, Rob
Sent: Monday, March 31, 2014 3:07 PM
To: Bovee, Justin; crowbar
Subject: RE: Crowbar Deployment
Yes! That helps a lot.
From: Bovee, Justin
Sent: Monday, March 31, 2014 2:45 PM
To: Hirschfeld, Rob; crowbar
Subject: RE: Crowbar Deployment
The current steps.
Setup Crowbar before the admin node is added.
Using the UI, go to barclamps and click edit on the barclamp. I see the same
behavior if I try and edit any value attached to the problematic barclamp.
Here is the list of the ones that error out for me
Core - Works
Crowbar - Works
Test - Fails
Network - Fails
Chef - Fails
Deployer - Works
Provisioner - Fails
DNS - Fails
NTP - Fails
Logging - Works
The failed all error out with similar failure message except calling to their
barclamp. The UI presents "Request Failed" error message.
[ERROR] EXCEPTION: Could not find Scaffolds::BarclampChef::ServersController or
Scaffolds::BarclampChef::ServerController or BarclampChef::ServersController or
BarclampChef::ServerController
Hope that helps.
Justin Bovee
Master Engineer, Storage
Dell | Enterprise Support Services
Office Number: (512) 728-6035 ext. 7239536
M-F (8:00am - 5:00pm CST)
How am I doing? Email my manager
[email protected]<mailto:[email protected]> with any feedback
From: Hirschfeld, Rob
Sent: Monday, March 31, 2014 2:23 PM
To: Bovee, Justin; crowbar
Subject: RE: Crowbar Deployment
Justin,
Thanks for the update. I'm working on the attributes update issue,
What URL are you calling? Could you let me know your steps to get this error?
This looks like a scaffolds issue so I'm not sure how to reproduce.
Rob
From: crowbar-bounces On Behalf Of Bovee, Justin
Sent: Monday, March 31, 2014 12:23 PM
To: Hirschfeld, Rob; crowbar
Subject: Re: [Crowbar] Crowbar Deployment
So I have gotten much further by using the production.sh script as a guide and
manually entering the data I need via the "crowbar commands". I still can't
make changes to the attributes in the Web UI. It errors out with backtrace
similar to this (http://pastebin.com/7Zif5gF3). While some of the commands
are self-explanatory, is there a good guide for using the commands?
The next command I am looking for is to update the DNS forwarders. During the
process, it set its DNS settings to itself and as such cannot pull the
provisioner-base-images and has errored out.
Justin Bovee
Master Engineer, Storage
Dell | Enterprise Support Services
Office Number: (512) 728-6035 ext. 7239536
M-F (8:00am - 5:00pm CST)
How am I doing? Email my manager
[email protected]<mailto:[email protected]> with any feedback
From: Bovee, Justin
Sent: Saturday, March 29, 2014 11:56 AM
To: Hirschfeld, Rob; crowbar
Subject: RE: Crowbar Deployment
I finished replicating my issue so I returned to testing crowbar. Here is how
I built the server this time.
Followed these instructions
https://wiki.opencrowbar.org/display/OCBP/OpenCrowbar+RPM+deployment+on+CentOS+6.5
Deployed on a PowerEdge 1950 with 4 nics
During running the production script, it errored out with the following error
++ curl -f --digest -u
machine-install:797a69a955756bc1de0f39921f5e72158afa0ff902657ed9a9910acd55c828dee101c346b731e8b2890b443a1ed7a5afec2ed2b7f16e46ee9f2570be13215a8f
-X GET http://localhost:3000/api/v2/networks/admin/allocations -d
node=crowbar01.okcstorage.local
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 500 Internal Server Error
+ netline=
[root@crowbar01 core]#
The production.log file shows
2014-03-29 11:38:54.911 [20662] [INFO ] Started GET
"/api/v2/networks/admin/allocations" for ::1 at 2014-03-29 11:38:54 -0500
2014-03-29 11:38:54.923 [20662] [INFO ] Processing by
NetworksController#allocations as JSON
2014-03-29 11:38:54.923 [20662] [INFO ] Parameters: {"version"=>"v2",
"id"=>"admin"}
2014-03-29 11:38:54.927 [20662] [ERROR] EXCEPTION: Must include a node parameter
2014-03-29 11:38:54.927 [20662] [ERROR] BACKTRACE:
/opt/opencrowbar/core/rails/app/controllers/networks_controller.rb:103:in
`allocations'
/var/cache/crowbar/gems/ruby/gems/actionpack-4.0.4/lib/action_controller/metal/implicit_render.rb:4:in
`send_action'
/var/cache/crowbar/gems/ruby/gems/actionpack-4.0.4/lib/abstract_controller/base.rb:189:in
`process_action'
Full BACKTRACE here
http://pastebin.com/QeXPR5aX
I can get into the web ui. Crowbar Annealer shows "No Errors", "No
Transition", chef-solo and network-server roles in the "To Do" category, and
the rest of the roles "Blocked".
Checking different Attributes in the scaffold section gives a "Request failed".
Which gives the similar errors in production.log. The only difference between
the errors is which Barclamp is listed.
2014-03-29 11:49:40.782 [20662] [INFO ] Rendered
/var/cache/crowbar/gems/ruby/bundler/gems/active_scaffold-79412aed8b71/app/views/active_scaffold_overrides/_update_form.html.erb
(508.1ms)
2014-03-29 11:49:40.782 [20662] [ERROR] EXCEPTION: Could not find
Scaffolds::BarclampChef::ServersController or
Scaffolds::BarclampChef::ServerController or BarclampChef::ServersController or
BarclampChef::ServerController
2014-03-29 11:49:40.782 [20662] [ERROR] BACKTRACE:
Backtrace here
http://pastebin.com/7Zif5gF3
Any ideas?
Thank you in advance.
Justin Bovee
Master Engineer, Storage
Dell | Enterprise Support Services
Office Number: (512) 728-6035 ext. 7239536
M-F (8:00am - 5:00pm CST)
How am I doing? Email my manager
[email protected]<mailto:[email protected]> with any feedback
From: crowbar-bounces On Behalf Of Bovee, Justin
Sent: Friday, March 28, 2014 11:02 AM
To: Hirschfeld, Rob; crowbar
Subject: Re: [Crowbar] Crowbar Deployment
Rob,
Thank you for responding. The end goal is to manage my Openstack, Ceph, and
Hadoop deployments. My focus is to quickly build/tear down environments for
our technicians to utilize for testing and replication. After reviewing the
framework and comparing it to other solutions I have looked at, I like the
direction.
I am currently focusing my deployments on using OpenCrowbar. I have attempted
building it myself, using the
"crowbar-development_master.4048.dev-ubuntu-12.04.iso", and using the RPMs.
Most of the little problems I have run into, I have fixed (like a problem with
repos, misspellings). The biggest issue I have run into that I haven't been
able to get around yet is
"BarclampsController missing ActiveScaffold". I get this error after launching
the Web UI and attempting configuration. It occurs anytime I attempt to edit
dns or network settings or attempt to add the admin node.
I had to tear down my crowbar environment yesterday for another testbed
deployment but hopefully spinning it back up shortly.
Is the IRC channel dead? I have been reaching out over IRC over the last week
with no response.
Justin Bovee
Master Engineer, Storage
Dell | Enterprise Support Services
Office Number: (512) 728-6035 ext. 7239536
M-F (8:00am - 5:00pm CST)
How am I doing? Email my manager
[email protected]<mailto:[email protected]> with any feedback
From: Hirschfeld, Rob
Sent: Friday, March 28, 2014 10:31 AM
To: Bovee, Justin; crowbar
Subject: RE: Crowbar Deployment
Justin,
Sorry, I agree it's confusing. We're trying to get it cleaned up.
Which version (1 or 2) are you trying to bring up? Can you give us some
information about what you want to accomplish in your testing? You say, manage
provisioning in your lab - is that for mainly Linux? Are you looking to
include OpenStack?
Rob
From: crowbar-bounces On Behalf Of Bovee, Justin
Sent: Friday, March 28, 2014 10:06 AM
To: crowbar
Subject: [Crowbar] Crowbar Deployment
Over the last week I have been working testing crowbar to manage provisioning
for our lab environment. I have read through the documentation for Crowbar on
the primary page (crowbar.github.io/docs), the github project for crowbar, and
the github project for opencrowbar. While there is a lot of information, the
documentation doesn't seem to be consistent and I keep running into deployment
issues. What documentation do you recommend that I use to properly deploy
opencrowbar?
I am not a developer so I apologize if this is a real newbie question, but I
have found different areas that I have needed to change or rewrite to get it to
work. What is the best way to upload these changes and help out?
Justin Bovee
_______________________________________________
Crowbar mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/crowbar
For more information: http://crowbar.github.com/