Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Unknown
-
Resolution: Unresolved
-
Affects Version/s: ec2-0.5.10
-
Fix Version/s: None
-
Component/s: knife-ec2
-
Labels:None
Description
When the environment is manually set in the knife.rb and you use a knife ec2 server create command, the environment is not correct in the command output. The node is put into the correct environment.
This line is in my knife.rb:
environment "dev"
I ran this command:
knife ec2 server create -I ami-6936fb00 -x ubuntu -N ec2-jessica --template-file .chef/bootstrap/ubuntu10.04-apt.erb -S jessica
But at the end of the knife command it showed this output, with the incorrect environment:
Instance ID: i-77a41312
Flavor: m1.small
Image: ami-6936fb00
Region: us-east-1
Availability Zone: us-east-1b
Security Groups: default
SSH Key: jessica
Root Device Type: instance-store
Public DNS Name: ec2-23-20-36-241.compute-1.amazonaws.com
Public IP Address: 23.20.36.241
Private DNS Name: domU-12-31-38-06-C1-FA.compute-1.internal
Private IP Address: 10.222.194.12
Environment: _default
A knife node show shows that the node is in the "dev" environment:
$ knife node show ec2-jessica Node Name: ec2-jessica Environment: dev FQDN: domU-12-31-38-06-C1-FA.compute-1.internal IP: 23.20.36.241 Run List: Roles: Recipes: Platform: ubuntu 10.04
Adding a -E switch to the command does work around the issue with the output, but this shouldn't be needed.
Related Ticket: http://help.opscode.com/discussions/questions/1073-encrypted_data_bag_secret-based-on-environment
Issue Links
- relates to
-
KNIFE-119
Mixlib/CLI is overwriting values defined in knife.rb with DEFAULT values
-
Activity
- All
- Comments
- History
- Activity
- Transitions Summary
| Field | Original Value | New Value |
|---|---|---|
| Link | This issue relates to KNIFE_EC2-80 [ KNIFE_EC2-80 ] |
| Project | Knife EC2 Plugin [ 10020 ] | Knife Plugins [ 10228 ] |
| Key | KNIFE_EC2-48 | KNIFE-126 |
| Workflow | jira [ 15188 ] | New OSS [ 22709 ] |
| Reporter | Jessica Bourne [ jessica ] | Bryan McLellan [ btm ] |
| Affects Version/s | ec2-0.5.10 [ 11137 ] | |
| Affects Version/s | 0.5.10 [ 10407 ] | |
| Component/s | knife-ec2 [ 11093 ] |