Giter Site home page Giter Site logo

Comments (5)

jjasghar avatar jjasghar commented on August 24, 2024

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.

fuel-wlightning avatar fuel-wlightning commented on August 24, 2024

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 methodgsub' 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.

fuel-wlightning avatar fuel-wlightning commented on August 24, 2024

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.

maxlinc avatar maxlinc commented on August 24, 2024

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.

fuel-wlightning avatar fuel-wlightning commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.