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

Cannot use stock images now directly for bastion #484

Closed
yussufsh opened this issue Jul 6, 2023 · 0 comments · Fixed by #485
Closed

Cannot use stock images now directly for bastion #484

yussufsh opened this issue Jul 6, 2023 · 0 comments · Fixed by #485
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@yussufsh
Copy link
Contributor

yussufsh commented Jul 6, 2023

module.prepare.ibm_pi_instance.bastion[0]: Creating...
╷
│ Error: failed to provision: failed to Create PVM Instance :[POST /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances][400] pcloudPvminstancesPostBadRequest  &{Code:0 Description:error getting deployment image information: image a78b0fc4-8f01-4f93-b165-22bcf4c9c6c0 does not belong to your project. Use image from your project for deploying a VM Error:bad request Message:}
│
│   with module.prepare.ibm_pi_instance.bastion[0],
│   on modules/1_prepare/prepare.tf line 77, in resource "ibm_pi_instance" "bastion":
│   77: resource "ibm_pi_instance" "bastion" {
│

While using stock image it throws a message suggesting to use project image instead of catalog image. We need a logic in the automation to read the project image with the given name and if it does not exist then copy to the project and use it.

@yussufsh yussufsh self-assigned this Jul 6, 2023
@yussufsh yussufsh added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 6, 2023
yussufsh added a commit to yussufsh/ocp4-upi-powervs that referenced this issue Jul 6, 2023
Fixes ocp-power-automation#484

Signed-off-by: Yussuf Shaikh <yussuf.shaikh1@ibm.com>
yussufsh added a commit to yussufsh/ocp4-upi-powervs that referenced this issue Jul 6, 2023
Fixes ocp-power-automation#484

Signed-off-by: Yussuf Shaikh <yussuf.shaikh1@ibm.com>
Prajyot-Parab pushed a commit to Prajyot-Parab/ocp4-upi-powervs that referenced this issue Nov 11, 2023
Fixes ocp-power-automation#484

Signed-off-by: Yussuf Shaikh <yussuf.shaikh1@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant