Advertisement
fedorm

fedorm

Jan 9th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.13 KB | None | 0 0
  1.  
  2. ➜  performance git:(SLS-58) ✗ terraform apply                
  3. aws_spot_instance_request.coupons-performance: Refreshing state... (ID: sir-i62ir32g)
  4.  
  5. An execution plan has been generated and is shown below.
  6. Resource actions are indicated with the following symbols:
  7.   + create
  8. -/+ destroy and then create replacement
  9.  
  10. Terraform will perform the following actions:
  11.  
  12. -/+ aws_spot_instance_request.coupons-performance (new resource required)
  13.       id:                                        "sir-i62ir32g" => <computed> (forces new resource)
  14.       ami:                                       "ami-0c82dade0950d8e61" => "ami-0c82dade0950d8e61"
  15.       arn:                                       "" => <computed>
  16.       associate_public_ip_address:               "" => <computed>
  17.       availability_zone:                         "" => <computed>
  18.       cpu_core_count:                            "" => <computed>
  19.       cpu_threads_per_core:                      "" => <computed>
  20.       ebs_block_device.#:                        "0" => <computed>
  21.       ephemeral_block_device.#:                  "0" => <computed>
  22.       get_password_data:                         "false" => "false"
  23.       host_id:                                   "" => <computed>
  24.       instance_interruption_behaviour:           "terminate" => "terminate"
  25.       instance_state:                            "" => <computed>
  26.       instance_type:                             "c4.8xlarge" => "c4.8xlarge"
  27.       ipv6_address_count:                        "" => <computed>
  28.       ipv6_addresses.#:                          "" => <computed> (forces new resource)
  29.       key_name:                                  "" => <computed>
  30.       network_interface.#:                       "0" => <computed>
  31.       network_interface_id:                      "" => <computed>
  32.       password_data:                             "" => <computed>
  33.       placement_group:                           "" => <computed>
  34.       primary_network_interface_id:              "" => <computed>
  35.       private_dns:                               "" => <computed>
  36.       private_ip:                                "" => <computed>
  37.       public_dns:                                "" => <computed>
  38.       public_ip:                                 "" => <computed>
  39.       root_block_device.#:                       "1" => "1"
  40.       root_block_device.0.delete_on_termination: "true" => "true"
  41.       root_block_device.0.volume_id:             "" => <computed>
  42.       root_block_device.0.volume_size:           "300" => "300"
  43.       root_block_device.0.volume_type:           "gp2" => "gp2"
  44.       security_groups.#:                         "0" => <computed>
  45.       source_dest_check:                         "true" => "true"
  46.       spot_bid_status:                           "capacity-oversubscribed" => <computed>
  47.       spot_instance_id:                          "" => <computed>
  48.       spot_price:                                "0.39" => "0.39"
  49.       spot_request_state:                        "open" => <computed>
  50.       spot_type:                                 "one-time" => "one-time"
  51.       subnet_id:                                 "" => <computed>
  52.       tags.%:                                    "0" => "1"
  53.       tags.Name:                                 "" => "coupons-performance"
  54.       tenancy:                                   "" => <computed>
  55.       valid_from:                                "0001-01-01T00:00:00Z" => <computed>
  56.       valid_until:                               "2019-01-16T15:03:59Z" => <computed>
  57.       vpc_security_group_ids.#:                  "0" => <computed>
  58.       wait_for_fulfillment:                      "true" => "true"
  59.  
  60.   + aws_spot_instance_request.stand-performance
  61.       id:                                        <computed>
  62.       ami:                                       "ami-0bfbff61bfe3862b5"
  63.       arn:                                       <computed>
  64.       associate_public_ip_address:               <computed>
  65.       availability_zone:                         <computed>
  66.       cpu_core_count:                            <computed>
  67.       cpu_threads_per_core:                      <computed>
  68.       ebs_block_device.#:                        <computed>
  69.       ephemeral_block_device.#:                  <computed>
  70.       get_password_data:                         "false"
  71.       host_id:                                   <computed>
  72.       instance_interruption_behaviour:           "terminate"
  73.       instance_state:                            <computed>
  74.       instance_type:                             "c4.2xlarge"
  75.       ipv6_address_count:                        <computed>
  76.       ipv6_addresses.#:                          <computed>
  77.       key_name:                                  <computed>
  78.       network_interface.#:                       <computed>
  79.       network_interface_id:                      <computed>
  80.       password_data:                             <computed>
  81.       placement_group:                           <computed>
  82.       primary_network_interface_id:              <computed>
  83.       private_dns:                               <computed>
  84.       private_ip:                                <computed>
  85.       public_dns:                                <computed>
  86.       public_ip:                                 <computed>
  87.       root_block_device.#:                       "1"
  88.       root_block_device.0.delete_on_termination: "true"
  89.       root_block_device.0.volume_id:             <computed>
  90.       root_block_device.0.volume_size:           "30"
  91.       root_block_device.0.volume_type:           "gp2"
  92.       security_groups.#:                         <computed>
  93.       source_dest_check:                         "true"
  94.       spot_bid_status:                           <computed>
  95.       spot_instance_id:                          <computed>
  96.       spot_price:                                "0.08"
  97.       spot_request_state:                        <computed>
  98.       spot_type:                                 "one-time"
  99.       subnet_id:                                 <computed>
  100.       tags.%:                                    "1"
  101.       tags.Name:                                 "stand-performance"
  102.       tenancy:                                   <computed>
  103.       valid_from:                                <computed>
  104.       valid_until:                               <computed>
  105.       vpc_security_group_ids.#:                  <computed>
  106.       wait_for_fulfillment:                      "true"
  107.  
  108.  
  109. Plan: 2 to add, 0 to change, 1 to destroy.
  110.  
  111. Do you want to perform these actions?
  112.   Terraform will perform the actions described above.
  113.   Only 'yes' will be accepted to approve.
  114.  
  115.   Enter a value: yes
  116.  
  117. aws_spot_instance_request.coupons-performance: Destroying... (ID: sir-i62ir32g)
  118. aws_spot_instance_request.stand-performance: Creating...
  119.   ami:                                       "" => "ami-0bfbff61bfe3862b5"
  120.   arn:                                       "" => "<computed>"
  121.   associate_public_ip_address:               "" => "<computed>"
  122.   availability_zone:                         "" => "<computed>"
  123.   cpu_core_count:                            "" => "<computed>"
  124.   cpu_threads_per_core:                      "" => "<computed>"
  125.   ebs_block_device.#:                        "" => "<computed>"
  126.   ephemeral_block_device.#:                  "" => "<computed>"
  127.   get_password_data:                         "" => "false"
  128.   host_id:                                   "" => "<computed>"
  129.   instance_interruption_behaviour:           "" => "terminate"
  130.   instance_state:                            "" => "<computed>"
  131.   instance_type:                             "" => "c4.2xlarge"
  132.   ipv6_address_count:                        "" => "<computed>"
  133.   ipv6_addresses.#:                          "" => "<computed>"
  134.   key_name:                                  "" => "<computed>"
  135.   network_interface.#:                       "" => "<computed>"
  136.   network_interface_id:                      "" => "<computed>"
  137.   password_data:                             "" => "<computed>"
  138.   placement_group:                           "" => "<computed>"
  139.   primary_network_interface_id:              "" => "<computed>"
  140.   private_dns:                               "" => "<computed>"
  141.   private_ip:                                "" => "<computed>"
  142.   public_dns:                                "" => "<computed>"
  143.   public_ip:                                 "" => "<computed>"
  144.   root_block_device.#:                       "" => "1"
  145.   root_block_device.0.delete_on_termination: "" => "true"
  146.   root_block_device.0.volume_id:             "" => "<computed>"
  147.   root_block_device.0.volume_size:           "" => "30"
  148.   root_block_device.0.volume_type:           "" => "gp2"
  149.   security_groups.#:                         "" => "<computed>"
  150.   source_dest_check:                         "" => "true"
  151.   spot_bid_status:                           "" => "<computed>"
  152.   spot_instance_id:                          "" => "<computed>"
  153.   spot_price:                                "" => "0.08"
  154.   spot_request_state:                        "" => "<computed>"
  155.   spot_type:                                 "" => "one-time"
  156.   subnet_id:                                 "" => "<computed>"
  157.   tags.%:                                    "" => "1"
  158.   tags.Name:                                 "" => "stand-performance"
  159.   tenancy:                                   "" => "<computed>"
  160.   valid_from:                                "" => "<computed>"
  161.   valid_until:                               "" => "<computed>"
  162.   vpc_security_group_ids.#:                  "" => "<computed>"
  163.   wait_for_fulfillment:                      "" => "true"
  164. aws_spot_instance_request.coupons-performance: Destruction complete after 0s
  165. aws_spot_instance_request.coupons-performance: Creating...
  166.   ami:                                       "" => "ami-0c82dade0950d8e61"
  167.   arn:                                       "" => "<computed>"
  168.   associate_public_ip_address:               "" => "<computed>"
  169.   availability_zone:                         "" => "<computed>"
  170.   cpu_core_count:                            "" => "<computed>"
  171.   cpu_threads_per_core:                      "" => "<computed>"
  172.   ebs_block_device.#:                        "" => "<computed>"
  173.   ephemeral_block_device.#:                  "" => "<computed>"
  174.   get_password_data:                         "" => "false"
  175.   host_id:                                   "" => "<computed>"
  176.   instance_interruption_behaviour:           "" => "terminate"
  177.   instance_state:                            "" => "<computed>"
  178.   instance_type:                             "" => "c4.8xlarge"
  179.   ipv6_address_count:                        "" => "<computed>"
  180.   ipv6_addresses.#:                          "" => "<computed>"
  181.   key_name:                                  "" => "<computed>"
  182.   network_interface.#:                       "" => "<computed>"
  183.   network_interface_id:                      "" => "<computed>"
  184.   password_data:                             "" => "<computed>"
  185.   placement_group:                           "" => "<computed>"
  186.   primary_network_interface_id:              "" => "<computed>"
  187.   private_dns:                               "" => "<computed>"
  188.   private_ip:                                "" => "<computed>"
  189.   public_dns:                                "" => "<computed>"
  190.   public_ip:                                 "" => "<computed>"
  191.   root_block_device.#:                       "" => "1"
  192.   root_block_device.0.delete_on_termination: "" => "true"
  193.   root_block_device.0.volume_id:             "" => "<computed>"
  194.   root_block_device.0.volume_size:           "" => "300"
  195.   root_block_device.0.volume_type:           "" => "gp2"
  196.   security_groups.#:                         "" => "<computed>"
  197.   source_dest_check:                         "" => "true"
  198.   spot_bid_status:                           "" => "<computed>"
  199.   spot_instance_id:                          "" => "<computed>"
  200.   spot_price:                                "" => "0.39"
  201.   spot_request_state:                        "" => "<computed>"
  202.   spot_type:                                 "" => "one-time"
  203.   subnet_id:                                 "" => "<computed>"
  204.   tags.%:                                    "" => "1"
  205.   tags.Name:                                 "" => "coupons-performance"
  206.   tenancy:                                   "" => "<computed>"
  207.   valid_from:                                "" => "<computed>"
  208.   valid_until:                               "" => "<computed>"
  209.   vpc_security_group_ids.#:                  "" => "<computed>"
  210.   wait_for_fulfillment:                      "" => "true"
  211. aws_spot_instance_request.stand-performance: Still creating... (10s elapsed)
  212. aws_spot_instance_request.coupons-performance: Still creating... (10s elapsed)
  213. aws_spot_instance_request.stand-performance: Creation complete after 14s (ID: sir-zm9rsvbh)
  214.  
  215. Error: Error applying plan:
  216.  
  217. 1 error(s) occurred:
  218.  
  219. * aws_spot_instance_request.coupons-performance: 1 error(s) occurred:
  220.  
  221. * aws_spot_instance_request.coupons-performance: Error while waiting for spot request ({
  222.   CreateTime: 2019-01-09 15:16:29 +0000 UTC,
  223.   InstanceInterruptionBehavior: "terminate",
  224.   LaunchSpecification: {
  225.     BlockDeviceMappings: [{
  226.         DeviceName: "/dev/sda1",
  227.         Ebs: {
  228.           DeleteOnTermination: true,
  229.           VolumeSize: 300,
  230.           VolumeType: "gp2"
  231.         }
  232.       }],
  233.     EbsOptimized: false,
  234.     IamInstanceProfile: {
  235.       Name: ""
  236.     },
  237.     ImageId: "ami-0c82dade0950d8e61",
  238.     InstanceType: "c4.8xlarge",
  239.     Monitoring: {
  240.       Enabled: false
  241.     },
  242.     Placement: {
  243.       AvailabilityZone: "us-east-2a",
  244.       GroupName: ""
  245.     },
  246.     SecurityGroups: [{
  247.         GroupId: "sg-589e0234",
  248.         GroupName: "default"
  249.       }],
  250.     SubnetId: "subnet-61022b09"
  251.   },
  252.   ProductDescription: "Linux/UNIX",
  253.   SpotInstanceRequestId: "sir-css8rzik",
  254.   SpotPrice: "0.390000",
  255.   State: "open",
  256.   Status: {
  257.     Code: "pending-evaluation",
  258.     Message: "Your Spot request has been submitted for review, and is pending evaluation.",
  259.     UpdateTime: 2019-01-09 15:16:29 +0000 UTC
  260.   },
  261.   Type: "one-time"
  262. }) to resolve: unexpected state 'capacity-oversubscribed', wanted target 'fulfilled'. last error: %!s(<nil>)
  263.  
  264. Terraform does not automatically rollback in the face of errors.
  265. Instead, your Terraform state file has been partially updated with
  266. any resources that successfully completed. Please address the error
  267. above and apply again to incrementally change your infrastructure.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement