Skip to content

Bug: [fog][WARNING] Unrecognized arguments: region, use_iam_profile #315

@mattheworiordan

Description

@mattheworiordan

For the last 3-6 months we occasionally get an error from fog using IAM authentication on an EC2 box as follows:

[fog][WARNING] Unrecognized arguments: region, use_iam_profile

The odd thing is we built in a retry mechanism to work around this but it made no difference because it seems like once the Ruby environment is setup, if the problem is there, it will remain there until you exit the Ruby process. Typically running it again resolves the problem.

We've have the same problem authenticating locally too i.e. from a local machine connecting to Amazon EC2 with the credentials in the ~/.fog file.

We get:

[fog][WARNING] Unrecognized arguments: region
undefined method `servers' for #<Fog::Compute::AWS::Real:0x007fd811307a78> (NoMethodError)

I assumed this was only me being affected as no one else reported the issue, but recently other users in the team have been reporting the problem as well.

I have tried to resolve this myself locally for months now and got nowhere with this :(

Any help or advice would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions