hashicorp / field-workshops-terraform

Slide decks and Instruqt code for Terraform Workshops
Mozilla Public License 2.0
69 stars 64 forks source link

oh-no-an-outage challenge broken #193

Closed combsbj closed 4 years ago

combsbj commented 4 years ago

terraform apply produces:

null_resource.configure-cat-app (remote-exec): The following packages have unmet dependencies: null_resource.configure-cat-app (remote-exec): apache2 : Depends: apache2-bin (= 2.4.29-1ubuntu4.14) but it is not going to be installed null_resource.configure-cat-app (remote-exec): Depends: apache2-utils (= 2.4.29-1ubuntu4.14) but it is not going to be installed null_resource.configure-cat-app (remote-exec): Recommends: ssl-cert but it is not installable null_resource.configure-cat-app (remote-exec): E: Unable to correct problems, you have held broken packages. null_resource.configure-cat-app (remote-exec): Failed to start apache2.service: Unit apache2.service notfound. null_resource.configure-cat-app (remote-exec): chown: cannot access '/var/www/html': No such file or directory null_resource.configure-cat-app (remote-exec): ./deploy_app.sh: line 5: /var/www/html/index.html: No such file or directory null_resource.configure-cat-app (remote-exec): Script complete

combsbj commented 4 years ago

running sudo apt -y upgrade fixes the issue

rberlind commented 4 years ago

Please clarify which exact Instruqt track this is for @combsbj Please also clarify where you ran sudo apt -y upgrade. On the Shell tab of the track? or inside the hashicat VM that is created by the Terraform code, or inside the null_resource script of main.tf? Most likely the last.

However, I just tested the TFC for AWS and TFC for Azure tracks and was able to run terraform apply without issue in the oh-no-an-outage challenge. So, I wonder if the issue you saw was a one-time fluke and question whether adding sudo apt -y upgrade is really needed.

I'll test GCP too.

rberlind commented 4 years ago

I tested GCP too and did not see a problem.

rberlind commented 4 years ago

cannot replicate. Closing