Comments (5)
This is throwing an error here: https://github.com/fog/fog/blob/master/lib/fog/rackspace/core.rb#L145
It looks like fog.io updated this recently too. I'm betting the issue lies with fog not this gem. But i'd like someone else to reconfirm this.
from knife-rackspace.
I've begun testing it by downgrading fog then removing the newer version (so it would stop using it)
So far I've recreated the issue on:
fog versions:
1.27.0
1.26.0
1.25.0
1.24.0
Last error I saw:
/usr/local/share/gems/gems/fog-1.24.0/lib/fog/rackspace/core.rb:141:in escape': undefined method
gsub' for 2:Fixnum (NoMethodError)
This would be easier if I had a version number to test against. Any idea when the change came out?
from knife-rackspace.
Utilizing fog I am able to create a machine:
server = Compute.new({:provider => 'rackspace', :rackspace_region => :dfw}).servers.create({:name => "Test Fog Instance", :flavor_id => 2, :image_id => "8aac6fb5-4bd3-4256-bf6e-ff8500bf60cd" })
from knife-rackspace.
It looks like it's an issue w/ passing the flavor ID as an integer vs a string, which makes it interesting that you can do it directly in fog w/ :flavor_id => 2
rather than :flavor_id => "2"
.
However, before you go any further you might want to take a look at the list of supported server flavors. In case you're not aware, flavor ID "2" (for "512 MB Standard Instance") is "being phased out and should not be used for new servers". I recommend updating to the smallest general flavor: "general1-1", a "1 GB General Purpose v1".
@jjasghar actually I see this is coming from a default value in this gem, so it probably makes sense to change the default value at https://github.com/chef/knife-rackspace/blob/c05cf2161bac8a010238e7d4fe7b492d0c760989/lib/chef/knife/rackspace_server_create.rb#L49 from 2
to "general1-1"
.
from knife-rackspace.
I can confirm:
The following commands get past the error above using rackspace-knife(0.10.0) and fog(1.27.0):
[wlightning@test-management-server ~]$ knife rackspace server create -f 2 -I 8aac6fb5-4bd3-4256-bf6e-ff8500bf60cd
Instance ID: 7de55efa-3a5e-4777-8c15-d7d8dff0f4d1
Name: ..removed..
Flavor: 512MB Standard Instance
Image: CentOS 6 (PVHVM)
Metadata: []
ConfigDrive: false
RackConnect Wait: no
ServiceLevel Wait: no
.................................................Metadata: []
Waiting server
Public DNS Name: ..removed...
Public IP Address: ..removed..
Private IP Address: ..removed..
Password: ..removed..
Metadata: []
Waiting for sshddone
Connecting to ..removed..
ERROR: Errno::ENOENT: No such file or directory - /etc/chef/validation.pem
[wlightning@test-management-server ~]$
This appears to be purely a problem with the default behavior. I also successfully passed a -f "2". This purely seems to be an issue when no flavor id is passed.
from knife-rackspace.
Related Issues (20)
- Cloud/Rackspace attributes not being set HOT 3
- Exception in post bootstrap summary HOT 1
- Support for Rackconnect version 3 HOT 1
- Fix tests
- undefined method label for Fog::Compute::RackspaceV2::Image
- --retry-ssh-limit command line option isn't used HOT 1
- knife rackspace server create issue with creating compute* and memory* server HOT 5
- knife-cloud
- Release with breaking changes HOT 8
- server list not working - undefined method `label' HOT 1
- knife rackspace server create failing HOT 7
- wimrm conflict during bootstrap HOT 10
- New release ? HOT 1
- errors with chefdk v1.2.20 HOT 1
- Error creating machine after new CHEFDK release. HOT 17
- Added functionality for cloud server Tags to the 'server create' command
- Get rid of my knife-dsl fork
- Set the user agent
- --rackspace-metadata throws exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knife-rackspace.