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

problem with get_input function on topology #800

Open
basterrus opened this issue Sep 1, 2023 · 0 comments
Open

problem with get_input function on topology #800

basterrus opened this issue Sep 1, 2023 · 0 comments
Labels
question Further information is requested

Comments

@basterrus
Copy link

basterrus commented Sep 1, 2023

Your question goes there

ревод
Hello! I use yorc to work with openstack. Faced a problem. In the topology (csar archive) I use the get_input function to get the parameter. The value in the boot_volume is not loaded properly, instead of the uuid and volume_type identifier there is
"{"get_input":"image_id"}". For params like name, flavor its ok. After that, the terraform crashes because it receives an invalid parameter. Here is my question is it related to yorc or is it a terraform problem. Below is the part of the topology in which there is a problem.
"
Compute:
type: yorc.nodes.rustack.Compute
properties:
name: { get_input: compute_name}
boot_volume:
delete_on_termination: true
source: image
destination: volume
size: 5 GB
volume_type: { get_input: volume_type_id }
uuid: { get_input: image_id }
flavor: { get_input: flavor_id }
key_pair: paas
security_groups: b19d5fbc-b787-4590-9e43-71785344166c
requirements:
- network:
type_requirement: network
node: Network
capability: tosca.capabilities.Connectivity
relationship: tosca.relationships.Network
capabilities:
endpoint:
properties:
credentials:
user: fedora
token_type: key
keys:
yorc: ""
secure: true
protocol: tcp
network_name: PRIVATE
network_id: 12578356-6f6b-491f-b727-924c613d8abe
initiator: source
scalable:
properties:
min_instances: 1
max_instances: 1
default_instances: 1
"

and part of the log from terraforms where you can see that the parameter does not come

` + access_ip_v4 = (known after apply)
+ access_ip_v6 = (known after apply)
+ all_metadata = (known after apply)
+ all_tags = (known after apply)
+ availability_zone = (known after apply)
+ created = (known after apply)
+ flavor_id = "ec70bcf4-15a4-4a02-a9fa-00aca8a14538"
+ flavor_name = (known after apply)
+ force_delete = false
+ id = (known after apply)
+ image_id = (known after apply)
+ image_name = (known after apply)
+ key_pair = "paas"
+ name = "my-custom-name-compute-0-151ae14f"
+ power_state = "active"
+ region = "RegionOne"
+ security_groups = [
+ "allow_all",
+ "b19d5fbc-b787-4590-9e43-71785344166c",
]
+ stop_before_destroy = false
+ updated = (known after apply)

  + block_device {
      + delete_on_termination = true
      + destination_type      = "volume"
      + multiattach           = false
      + source_type           = "image"
      + uuid                  = jsonencode(
            {
              + get_input = "image_id"
            }
        )
      + volume_size           = 5
      + volume_type           = jsonencode(
            {
              + get_input = "volume_type_id"
            }
        )
    }

  + network {
      + access_network = true
      + fixed_ip_v4    = (known after apply)
      + fixed_ip_v6    = (known after apply)
      + floating_ip    = (known after apply)
      + mac            = (known after apply)

`

@ystia/yorc-dev

@basterrus basterrus added the question Further information is requested label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant