Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ubuntu] Update Ubuntu minimal packer file #10044

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

ijunaidm
Copy link
Contributor

@ijunaidm ijunaidm commented Jun 11, 2024

Description

During the investigation for an issue, there was an update to be made in the ubuntu minimal image packer file for the environment variable from var to local.

Related issue:

#10028

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@ijunaidm ijunaidm changed the title Updated Ubuntu minimal packer file [Ubuntu] Updated Ubuntu minimal packer file Jun 11, 2024
@shamil-mubarakshin shamil-mubarakshin changed the title [Ubuntu] Updated Ubuntu minimal packer file [Ubuntu] Update Ubuntu minimal packer file Jun 12, 2024
@shamil-mubarakshin shamil-mubarakshin merged commit bb433ff into actions:main Jun 12, 2024
3 checks passed
@veronicagt094
Copy link

In my case, it still shows the error

2024/06/14 18:27:51 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: scp: debug1: fd 0 clearing O_NONBLOCK
2024/06/14 18:27:51 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:51 [DEBUG] Opening new ssh session
2024/06/14 18:27:51 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:51 [DEBUG] starting remote command: chmod 0755 /tmp/script_8716.sh
2024/06/14 18:27:51 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:51 [INFO] RPC endpoint: Communicator ended with: 0
2024/06/14 18:27:51 [INFO] RPC client: Communicator ended with: 0
2024/06/14 18:27:51 [INFO] RPC endpoint: Communicator ended with: 0
2024/06/14 18:27:51 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2024/06/14 18:27:51 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:51 [DEBUG] Opening new ssh session
2024/06/14 18:27:51 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:51 [DEBUG] starting remote command: sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_8716.sh'
==> azure-arm.build_image: Downloading package from https://releases.hashicorp.com/packer/1.11.0/packer_1.11.0_linux_amd64.zip to /tmp/packer_1.11.0_linux_amd64.zip...
##[debug]Agent environment resources - Disk: / Available 29604.00 MB out of 85160.00 MB, Memory: Used 1310.00 MB out of 7940.00 MB, CPU: Usage 0.60%
==> azure-arm.build_image: Package downloaded in 2 seconds
==> azure-arm.build_image: replace /usr/local/bin/LICENSE.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
==> azure-arm.build_image: (EOF or read error, treating as "[N]one" ...)
2024/06/14 18:27:53 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:53 [ERROR] Remote command exited with '1': sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_8716.sh'
2024/06/14 18:27:53 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/14 18:27:53 [INFO] RPC endpoint: Communicator ended with: 1
2024/06/14 18:27:53 [INFO] 0 bytes written for 'stdout'
2024/06/14 18:27:53 [INFO] 299 bytes written for 'stderr'
2024/06/14 18:27:53 [INFO] RPC client: Communicator ended with: 1
2024/06/14 18:27:53 [INFO] RPC endpoint: Communicator ended with: 1
2024/06/14 18:27:53 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stdout'
2024/06/14 18:27:53 packer-provisioner-shell plugin: [INFO] 299 bytes written for 'stderr'
2024/06/14 18:27:53 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 1
2024/06/14 18:27:53 [INFO] (telemetry) ending shell

@veronicagt094
Copy link

Hello, I'm still having problems, apply the solution from this finding but it doesn't work either, is there anything else you can do?

bb433ff#diff-460b2a32135427e6152ad08ef087cf7dc29259826ccf350fe89b087b811b94e3

2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] Starting remote scp process: scp -vt /tmp
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] Started SCP session, beginning transfers...
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] Copying input data into temporary file so we can read the length
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] scp: Uploading script_5776.sh: perms=C0644 size=615
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] SCP session complete, closing stdin pipe.
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] Waiting for SSH session to complete.
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] scp stderr (length 70): Sink: C0644 615 script_5776.sh
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: scp: debug1: fd 0 clearing O_NONBLOCK
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] Opening new ssh session
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] starting remote command: chmod 0755 /tmp/script_5776.sh
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [INFO] RPC endpoint: Communicator ended with: 0
2024/06/17 15:05:38 [INFO] RPC client: Communicator ended with: 0
2024/06/17 15:05:38 [INFO] RPC endpoint: Communicator ended with: 0
2024/06/17 15:05:38 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] Opening new ssh session
2024/06/17 15:05:38 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:38 [DEBUG] starting remote command: sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_5776.sh'
==> azure-arm.build_image: Downloading package from https://releases.hashicorp.com/packer/1.11.0/packer_1.11.0_linux_amd64.zip to /tmp/packer_1.11.0_linux_amd64.zip...
##[debug]Agent environment resources - Disk: / Available 29809.00 MB out of 85160.00 MB, Memory: Used 1279.00 MB out of 7940.00 MB, CPU: Usage 0.60%
==> azure-arm.build_image: Package downloaded in 1 seconds
==> azure-arm.build_image: replace /usr/local/bin/LICENSE.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
==> azure-arm.build_image: (EOF or read error, treating as "[N]one" ...)
2024/06/17 15:05:41 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:41 [ERROR] Remote command exited with '1': sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_5776.sh'
2024/06/17 15:05:41 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/17 15:05:41 [INFO] RPC endpoint: Communicator ended with: 1
2024/06/17 15:05:41 [INFO] 0 bytes written for 'stdout'
2024/06/17 15:05:41 [INFO] 299 bytes written for 'stderr'
2024/06/17 15:05:41 [INFO] RPC client: Communicator ended with: 1
2024/06/17 15:05:41 [INFO] RPC endpoint: Communicator ended with: 1
2024/06/17 15:05:41 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stdout'
2024/06/17 15:05:41 packer-provisioner-shell plugin: [INFO] 299 bytes written for 'stderr'
2024/06/17 15:05:41 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 1
2024/06/17 15:05:41 [INFO] (telemetry) ending shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants