Status Update
Comments
va...@google.com <va...@google.com>
ku...@google.com <ku...@google.com>
ka...@google.com <ka...@google.com>
ry...@google.com <ry...@google.com> #2
Hello,
Thank you for posting on the Public Issue Tracker.
The same
Have a nice day.
ry...@google.com <ry...@google.com> #3
Hello, Thank you for pointing that out! Strangely I didn't find that issue when searched by text. I will star and monitor that original feature request. Hope it starts moving soon!
ka...@google.com <ka...@google.com> #4
pr...@google.com <pr...@google.com>
bh...@redhat.com <bh...@redhat.com> #5
Hello,
Could you please let me know the tentative timeframe for the fix, it would help me in my planning.
Thanks and Regards.
bs...@google.com <bs...@google.com> #6
Could you please confirm that you are passing the resource names in the correct format?
bh...@redhat.com <bh...@redhat.com> #7
Yes, I am getting the success response for tag binding operation and when the resource is described, the response has the correct details of the resource queried except for the tag bindings information. When resource is checked using the UI, it displays all attributes of the resource, except the tag details.
Below is the response received for attaching tags to a filestore instance.
$ gcloud resource-manager tags bindings create --tag-value=openshift-gce-devel/test4/test4 --parent=//file.googleapis.com/projects/openshift-gce-devel/locations/asia-south1-a/instances/pvc-d02f27f2-a21d-4e43-8227-1d8180ae8447 --location=asia-south1-a
done: true
response:
'@type': type.googleapis.com/google.cloud.resourcemanager.v3.TagBinding
name: tagBindings/%2F%2Ffile.googleapis.com%2Fprojects%2F1043659492591%2Flocations%2Fasia-south1-a%2Finstances%2Fpvc-d02f27f2-a21d-4e43-8227-1d8180ae8447/tagValues/281476071422546
parent: //file.googleapis.com/projects/1043659492591/locations/asia-south1-a/instances/pvc-d02f27f2-a21d-4e43-8227-1d8180ae8447
tagValue: tagValues/281476071422546
tagValueNamespacedName: openshift-gce-devel/test4/test4
Below is the response received for querying the filestore instance resource, which doesn't have the tag just added.
$ gcloud filestore instances describe pvc-d02f27f2-a21d-4e43-8227-1d8180ae8447 --location=asia-south1-a
createTime: '2023-10-02T13:50:01.250051842Z'
fileShares:
- capacityGb: '1024'
name: vol1
labels:
createdby: bhb
env: dev
kubernetes-io-cluster-bhb-s24fv: owned
storage_gke_io_created-by: filestore_csi_storage_gke_io
name: projects/openshift-gce-devel/locations/asia-south1-a/instances/pvc-d02f27f2-a21d-4e43-8227-1d8180ae8447
networks:
- connectMode: DIRECT_PEERING
ipAddresses:
- 10.101.205.34
modes:
- MODE_IPV4
network: bhb-s24fv-network
reservedIpRange: 10.101.205.32/29
state: READY
tier: STANDARD
PFA the screenshot of UI with the details of filestore instance resource and also service supporting tags details.
P.S. It's the same for other resources mentioned in the ticket as well.
bh...@redhat.com <bh...@redhat.com> #9
$ gcloud filestore instances describe test-filestore-instance-tags --location=us-central1-a
createTime: '2023-10-11T05:19:06.596309841Z'
fileShares:
- capacityGb: '1024'
name: bhb_share
labels:
createdby: bhb
env: dev
name: projects/openshift-gce-devel/locations/us-central1-a/instances/test-filestore-instance-tags
networks:
- connectMode: DIRECT_PEERING
ipAddresses:
- 10.35.11.10
modes:
- MODE_IPV4
network: default-e2e
reservedIpRange: 10.35.11.8/29
state: READY
tier: BASIC_HDD
$ gcloud resource-manager tags bindings create --tag-value=openshift-gce-devel/test4/test4 --parent=//file.googleapis.com/projects/openshift-gce-devel/locations/us-central1-a/instances/test-filestore-instance-tags --location=us-central1-a
done: true
response:
'@type': type.googleapis.com/google.cloud.resourcemanager.v3.TagBinding
name: tagBindings/%2F%2Ffile.googleapis.com%2Fprojects%2F1043659492591%2Flocations%2Fus-central1-a%2Finstances%2Ftest-filestore-instance-tags/tagValues/281476071422546
parent: //file.googleapis.com/projects/1043659492591/locations/us-central1-a/instances/test-filestore-instance-tags
tagValue: tagValues/281476071422546
tagValueNamespacedName: openshift-gce-devel/test4/test4
$ gcloud filestore instances describe test-filestore-instance-tags --location=us-central1-a
createTime: '2023-10-11T05:19:06.596309841Z'
fileShares:
- capacityGb: '1024'
name: bhb_share
labels:
createdby: bhb
env: dev
name: projects/openshift-gce-devel/locations/us-central1-a/instances/test-filestore-instance-tags
networks:
- connectMode: DIRECT_PEERING
ipAddresses:
- 10.35.11.10
modes:
- MODE_IPV4
network: default-e2e
reservedIpRange: 10.35.11.8/29
state: READY
tier: BASIC_HDD
$ curl -i -X GET -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Accept:application/json" 'https://us-central1-a-cloudresourcemanager.googleapis.com/v3/tagBindings?parent=%2F%2Ffile.googleapis.com%2Fprojects%2F1043659492591%2Flocations%2Fus-central1-a%2Finstances%2Ftest-filestore-instance-tags'
HTTP/2 200
content-type: application/json; charset=UTF-8
vary: X-Origin
vary: Referer
vary: Origin,Accept-Encoding
date: Wed, 11 Oct 2023 05:31:27 GMT
server: ESF
cache-control: private
x-xss-protection: 0
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
accept-ranges: none
{
"tagBindings": [
{
"name": "tagBindings/%2F%2Ffile.googleapis.com%2Fprojects%2F1043659492591%2Flocations%2Fus-central1-a%2Finstances%2Ftest-filestore-instance-tags/tagValues/281476071422546",
"parent": "//file.googleapis.com/projects/1043659492591/locations/us-central1-a/instances/test-filestore-instance-tags",
"tagValue": "tagValues/281476071422546"
}
]
}
$ curl -i -X GET -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Accept:application/json" 'https://us-central1-a-cloudresourcemanager.googleapis.com/v3/effectiveTags?parent=%2F%2Ffile.googleapis.com%2Fprojects%2F1043659492591%2Flocations%2Fus-central1-a%2Finstances%2Ftest-filestore-instance-tags'
HTTP/2 200
content-type: application/json; charset=UTF-8
vary: X-Origin
vary: Referer
vary: Origin,Accept-Encoding
date: Wed, 11 Oct 2023 05:31:12 GMT
server: ESF
cache-control: private
x-xss-protection: 0
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
accept-ranges: none
{
"effectiveTags": [
{
"tagValue": "tagValues/281483998077332",
"namespacedTagValue": "openshift-gce-devel/test3/test3",
"tagKey": "tagKeys/281482830535601",
"namespacedTagKey": "openshift-gce-devel/test3",
"inherited": true,
"tagKeyParentName": "projects/1043659492591"
},
{
"tagValue": "tagValues/281476071422546",
"namespacedTagValue": "openshift-gce-devel/test4/test4",
"tagKey": "tagKeys/281480282555678",
"namespacedTagKey": "openshift-gce-devel/test4",
"tagKeyParentName": "projects/1043659492591"
}
]
}
bs...@google.com <bs...@google.com> #10
Could you please try the following command -
gcloud resource-manager tags bindings list --parent=RESOURCE_ID --location=LOCATION
bh...@redhat.com <bh...@redhat.com> #11
$ gcloud resource-manager tags bindings list --parent=//file.googleapis.com/projects/1043659492591/locations/us-central1-a/instances/test-filestore-instance-tags --location=us-central1-a
---
name: tagBindings/%2F%2Ffile.googleapis.com%2Fprojects%2F1043659492591%2Flocations%2Fus-central1-a%2Finstances%2Ftest-filestore-instance-tags/tagValues/281476071422546
parent: //file.googleapis.com/projects/1043659492591/locations/us-central1-a/instances/test-filestore-instance-tags
tagValue: tagValues/281476071422546
$ gcloud resource-manager tags bindings list --parent=//file.googleapis.com/projects/1043659492591/locations/us-central1-a/instances/test-filestore-instance-tags --location=us-central1-a --effective
---
inherited: true
namespacedTagKey: openshift-gce-devel/test3
namespacedTagValue: openshift-gce-devel/test3/test3
tagKey: tagKeys/281482830535601
tagKeyParentName: projects/1043659492591
tagValue: tagValues/281483998077332
---
namespacedTagKey: openshift-gce-devel/test4
namespacedTagValue: openshift-gce-devel/test4/test4
tagKey: tagKeys/281480282555678
tagKeyParentName: projects/1043659492591
tagValue: tagValues/281476071422546
bs...@google.com <bs...@google.com> #12
Looks like the tag bindings are visible, as expected. Is there something unexpected about this output?
bh...@redhat.com <bh...@redhat.com> #13
Yes tag bindings on resources get listed when tag specific APIs are used. My concern or expected behavior is, the console doesn't list the attached tags, like for Compute Instance or Storage Bucket.
bs...@google.com <bs...@google.com> #14
This feature is not supported as of now.
ja...@google.com <ja...@google.com> #15
Closing this bug since the functionality is working as expected. Please create another bug if you want to file a feature request.
Description
This will create a public issue which anybody can view and comment on.
Please provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible please provide a summary of what steps or workarounds you have already tried, and any docs or articles you found (un)helpful.
Problem you have encountered:
GCP supports adding resource manager tags to Compute Instances, Compute Images, Compute Disks, Compute Snapshots, Storage Buckets, Filestore Instances, Filestore Backups resources and we can successfully bind tags to these resources. But except for Compute Instances and Storage Buckets, tags attached to other listed resources are not displayed when viewing the resource in console or when described using gcloud CLI.
What you expected to happen:
Console and gcloud CLI describe command should list the tags attached to resources which support resource manager tags.
Steps to reproduce:
Other information (workarounds you have tried, documentation consulted, etc): Documentation:https://cloud.google.com/resource-manager/docs/tags/tags-supported-services#supported_service_resources