Meet industry peers, ask questions, collaborate to find answers, and connect with Googlers who are making the products you use every day.<\/p>", "imageupload.max_uploaded_images_per_upload" : 100, "imageupload.max_uploaded_images_per_user" : 10000, "integratedprofile.connect_mode" : "", "tkb.toc_maximum_heading_level" : "2", "tkb.toc_heading_list_style" : "disc", "sharedprofile.show_hovercard_score" : true, "config.search_before_post_scope" : "community", "tkb.toc_heading_indent" : "15", "p13n.cta.recommendations_feed_dismissal_timestamp" : -1, "imageupload.max_file_size" : 10024, "layout.show_batch_checkboxes" : false, "integratedprofile.cta_connect_slim_dismissal_timestamp" : -1 }, "isAnonymous" : true, "policies" : { "image-upload.process-and-remove-exif-metadata" : true }, "registered" : false, "emailRef" : "", "id" : -1, "login" : "Former Community Member" }, "Server" : { "communityPrefix" : "/qsqph94282", "nodeChangeTimeStamp" : 1732555219027, "tapestryPrefix" : "/gc", "deviceMode" : "DESKTOP", "responsiveDeviceMode" : "DESKTOP", "membershipChangeTimeStamp" : "0", "version" : "24.7", "branch" : "24.7-release", "showTextKeys" : false }, "Config" : { "phase" : "prod", "integratedprofile.cta.reprompt.delay" : 30, "profileplus.tracking" : { "profileplus.tracking.enable" : false, "profileplus.tracking.click.enable" : false, "profileplus.tracking.impression.enable" : false }, "app.revision" : "2409051714-s8dac8f1df8-b80", "navigation.manager.community.structure.limit" : "1000" }, "Activity" : { "Results" : [ ] }, "NodeContainer" : { "viewHref" : "https://www.googlecloudcommunity.com/gc/Cloud-Forums/ct-p/cloud-forums", "description" : "Get answers to your questions and share your knowledge about the Google Cloud.", "id" : "cloud-forums", "shortTitle" : "Cloud Forums", "title" : "Cloud Forums", "nodeType" : "category" }, "Page" : { "skins" : [ "googlecloud", "theme_hermes", "responsive_peak" ], "authUrls" : { "loginUrl" : "https://www.googlecloudcommunity.com/gc/user/userloginpage?dest_url=https%3A%2F%2Fwww.googlecloudcommunity.com%2Fgc%2FAnthos%2FASM-with-remote-fleet%2Fm-p%2F708845", "loginUrlNotRegistered" : "https://www.googlecloudcommunity.com/gc/user/userloginpage?redirectreason=notregistered&dest_url=https%3A%2F%2Fwww.googlecloudcommunity.com%2Fgc%2FAnthos%2FASM-with-remote-fleet%2Fm-p%2F708845", "loginUrlNotRegisteredDestTpl" : "https://www.googlecloudcommunity.com/gc/user/userloginpage?redirectreason=notregistered&dest_url=%7B%7BdestUrl%7D%7D" }, "name" : "ForumTopicPage", "rtl" : false, "object" : { "viewHref" : "/gc/Anthos/ASM-with-remote-fleet/td-p/705065", "subject" : "ASM with remote fleet", "id" : 705065, "page" : "ForumTopicPage", "type" : "Thread" } }, "WebTracking" : { "Activities" : { }, "path" : "Community:Google Cloud Community/Category:Google Cloud/Category:Cloud Forums/Board:Anthos/Message:Re: ASM with remote fleet" }, "Feedback" : { "targeted" : { } }, "Seo" : { "markerEscaping" : { "pathElement" : { "prefix" : "@", "match" : "^[0-9][0-9]$" }, "enabled" : false } }, "TopLevelNode" : { "viewHref" : "https://www.googlecloudcommunity.com/gc/Google-Cloud/ct-p/google-cloud", "description" : "Find answers, ask questions, and connect with our community of experts.", "id" : "google-cloud", "shortTitle" : "Google Cloud", "title" : "Google Cloud", "nodeType" : "category" }, "Community" : { "viewHref" : "https://www.googlecloudcommunity.com/", "integratedprofile.lang_code" : "en", "integratedprofile.country_code" : "US", "id" : "qsqph94282", "shortTitle" : "Google Cloud Community", "title" : "Google Cloud Community" }, "CoreNode" : { "conversationStyle" : "forum", "viewHref" : "https://www.googlecloudcommunity.com/gc/Anthos/bd-p/cloud_anthos", "settings" : { }, "description" : "Ask questions about using Anthos to manage infrastructure and apps across on-premises, edge, and multiple public clouds.", "id" : "cloud_anthos", "shortTitle" : "Anthos", "title" : "Anthos", "nodeType" : "Board", "ancestors" : [ { "viewHref" : "https://www.googlecloudcommunity.com/gc/Cloud-Forums/ct-p/cloud-forums", "description" : "Get answers to your questions and share your knowledge about the Google Cloud.", "id" : "cloud-forums", "shortTitle" : "Cloud Forums", "title" : "Cloud Forums", "nodeType" : "category" }, { "viewHref" : "https://www.googlecloudcommunity.com/gc/Google-Cloud/ct-p/google-cloud", "description" : "Find answers, ask questions, and connect with our community of experts.", "id" : "google-cloud", "shortTitle" : "Google Cloud", "title" : "Google Cloud", "nodeType" : "category" }, { "viewHref" : "https://www.googlecloudcommunity.com/", "description" : "The official home of Google Cloud and Workspace community forums, learning hub, and community blogs.", "id" : "qsqph94282", "shortTitle" : "Google Cloud Community", "title" : "Google Cloud Community", "nodeType" : "Community" } ] } }; LITHIUM.Components.RENDER_URL = "/gc/util/componentrenderpage/component-id/#{component-id}?render_behavior=raw"; LITHIUM.Components.ORIGINAL_PAGE_NAME = 'forums/v5/ForumTopicPage'; LITHIUM.Components.ORIGINAL_PAGE_ID = 'ForumTopicPage'; LITHIUM.Components.ORIGINAL_PAGE_CONTEXT = 'xP6tfErjAoICRR41dlVUv8spU9xDqg3EdZeR_nenNAlOQY5dvibenijRFSIkOQEJnms3D983eyrH7km8sEXHp-70iCdjO8NMv1100sL1yfWQSZFtADHL-Dxmq4wditXeg8EIU2vFvPKotXPkhbeZR59MSnqkGmV-dv36e-l7m7A0_OPTcrE-eFaKQhfeKflOutqNHwitDwJSPTIPuF8D-m2erEJb2O_bPFO33jW5htSbid8zwm0e-LbzJ01J1XUeTRt_UDHyyohJ-dQz7yfxgi7ffY9Hv9gzLqNjeWRrXiMqzmXFCbEkZdaj5DbMRkg7HyMWS2Z7oTzP5f8X-crbPihlELX5htxvmL-VF-tQ5yA.'; LITHIUM.Css = { "BASE_DEFERRED_IMAGE" : "lia-deferred-image", "BASE_BUTTON" : "lia-button", "BASE_SPOILER_CONTAINER" : "lia-spoiler-container", "BASE_TABS_INACTIVE" : "lia-tabs-inactive", "BASE_TABS_ACTIVE" : "lia-tabs-active", "BASE_AJAX_REMOVE_HIGHLIGHT" : "lia-ajax-remove-highlight", "BASE_FEEDBACK_SCROLL_TO" : "lia-feedback-scroll-to", "BASE_FORM_FIELD_VALIDATING" : "lia-form-field-validating", "BASE_FORM_ERROR_TEXT" : "lia-form-error-text", "BASE_FEEDBACK_INLINE_ALERT" : "lia-panel-feedback-inline-alert", "BASE_BUTTON_OVERLAY" : "lia-button-overlay", "BASE_TABS_STANDARD" : "lia-tabs-standard", "BASE_AJAX_INDETERMINATE_LOADER_BAR" : "lia-ajax-indeterminate-loader-bar", "BASE_AJAX_SUCCESS_HIGHLIGHT" : "lia-ajax-success-highlight", "BASE_CONTENT" : "lia-content", "BASE_JS_HIDDEN" : "lia-js-hidden", "BASE_AJAX_LOADER_CONTENT_OVERLAY" : "lia-ajax-loader-content-overlay", "BASE_FORM_FIELD_SUCCESS" : "lia-form-field-success", "BASE_FORM_WARNING_TEXT" : "lia-form-warning-text", "BASE_FORM_FIELDSET_CONTENT_WRAPPER" : "lia-form-fieldset-content-wrapper", "BASE_AJAX_LOADER_OVERLAY_TYPE" : "lia-ajax-overlay-loader", "BASE_FORM_FIELD_ERROR" : "lia-form-field-error", "BASE_SPOILER_CONTENT" : "lia-spoiler-content", "BASE_FORM_SUBMITTING" : "lia-form-submitting", "BASE_EFFECT_HIGHLIGHT_START" : "lia-effect-highlight-start", "BASE_FORM_FIELD_ERROR_NO_FOCUS" : "lia-form-field-error-no-focus", "BASE_EFFECT_HIGHLIGHT_END" : "lia-effect-highlight-end", "BASE_SPOILER_LINK" : "lia-spoiler-link", "FACEBOOK_LOGOUT" : "lia-component-users-action-logout", "BASE_DISABLED" : "lia-link-disabled", "FACEBOOK_SWITCH_USER" : "lia-component-admin-action-switch-user", "BASE_FORM_FIELD_WARNING" : "lia-form-field-warning", "BASE_AJAX_LOADER_FEEDBACK" : "lia-ajax-loader-feedback", "BASE_AJAX_LOADER_OVERLAY" : "lia-ajax-loader-overlay", "BASE_LAZY_LOAD" : "lia-lazy-load" }; LITHIUM.noConflict = true; LITHIUM.useCheckOnline = false; LITHIUM.RenderedScripts = [ "prism.js", "KeepSessionAlive.js", "jquery.effects.slide.js", "MessageBodyDisplay.js", "en.js", "brightcove_uploader.js", "ReCaptchaV3.js", "PolyfillsAll.js", "en.js", "plugin.js", "TinyMceEditor.js", "jquery.delayToggle-1.0.js", "jquery.ui.widget.js", "jquery.ajax-cache-response-1.0.js", "jquery.clone-position-1.0.js", "jquery.function-utils-1.0.js", "DataHandler.js", "Components.js", "plugin.js", "en.js", "MessageEditor.js", "SearchForm.js", "plugin.js", "ProductsField.js", "jquery.blockui.js", "AjaxFeedback.js", "plugin.js", "SearchAutoCompleteToggle.js", "jquery.ui.draggable.js", "DropDownMenu.js", "LiModernizr.js", "plugin.js", "jquery.placeholder-2.0.7.js", "jquery.ui.resizable.js", "jquery.tmpl-1.1.1.js", "InlineMessageReplyContainer.js", "Text.js", "Events.js", "ElementQueries.js", "jquery.css-data-1.0.js", "json2.js", "BlockEvents.js", "en.js", "jquery.viewport-1.0.js", "NoConflict.js", "aws-sdk.js", "FieldSet.js", "Tooltip.js", "MessageViewDisplay.js", "theme.js", "ResizeSensor.js", "tinymce-patched.js", "LazyLoadComponent.js", "HelpIcon.js", "jquery.effects.core.js", "plugin.js", "Throttle.js", "plugin.js", "plugin.js", "jquery.tools.tooltip-1.2.6.js", "plugin.js", "Cache.js", "TokenInputAutoComplete.js", "plugin.js", "PartialRenderProxy.js", "jquery.scrollTo.js", "jquery.position-toggle-1.0.js", "jquery.hoverIntent-r6.js", "jquery.ui.position.js", "jquery.ui.dialog.js", "jquery.ui.mouse.js", "plugin.js", "jquery.iframe-transport.js", "EarlyEventCapture.js", "jquery.js", "en.js", "plugin.js", "jquery.json-2.6.0.js", "jquery.ui.core.js", "Video.js", "Link.js", "DeferredImages.js", "Lithium.js", "plugin.js", "AutoComplete.js", "plugin.js", "CustomEvent.js", "InputEditForm.js", "ActiveCast3.js", "plugin.js", "plugin.js", "en.js", "Forms.js", "InformationBox.js", "jquery.autocomplete.js", "plugin.js", "plugin.js", "OoyalaPlayer.js", "ForceLithiumJQuery.js", "jquery.fileupload.js", "Globals.js", "ElementMethods.js", "Namespace.js", "plugin.js", "plugin.js", "jquery.appear-1.1.1.js", "Auth.js", "en.js", "plugin.js", "en.js", "Placeholder.js", "en.js", "jquery.lithium-toastmessage.js", "ThreadedDetailMessageList.js", "plugin.js", "plugin.js", "Sandbox.js", "DropDownMenuVisibilityHandler.js", "jquery.lithium-selector-extensions.js", "api.js", "InlineMessageReplyEditor.js", "jquery.tokeninput-1.6.2.js", "jquery.iframe-shim-1.0.js", "AjaxSupport.js", "InlineMessageEditor.js", "Loader.js", "CookieBannerAlert.js", "Dialog.js", "en.js", "SpoilerToggle.js" ];(function(){LITHIUM.AngularSupport=function(){function g(a,c){a=a||{};for(var b in c)"[object object]"===Object.prototype.toString.call(c[b])?a[b]=g(a[b],c[b]):a[b]=c[b];return a}var d,f,b={coreModule:"li.community",coreModuleDeps:[],noConflict:!0,bootstrapElementSelector:".lia-page .min-width .lia-content",bootstrapApp:!0,debugEnabled:!1,useCsp:!0,useNg2:!1},k=function(){var a;return function(b){a||(a=document.createElement("a"));a.href=b;return a.href}}();LITHIUM.Angular={};return{preventGlobals:LITHIUM.Globals.preventGlobals, restoreGlobals:LITHIUM.Globals.restoreGlobals,init:function(){var a=[],c=document.querySelector(b.bootstrapElementSelector);a.push(b.coreModule);b.customerModules&&0

Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ASM with remote fleet

Hello, I'm trying to provision Anthos Service Mesh on a GKE cluster in a different google cloud project using the fleet API. The service mesh status shows healthy, however, while provisioning an ingress gateway, the istio-proxy container fails to get into a ready state with the following logs:

 

2024-01-31T16:48:52.804710Z	warning	envoy config external/envoy/source/common/config/grpc_stream.h:163	StreamAggregatedResources gRPC config stream to xds-grpc closed: 16, transport: per-RPC creds failed due to error: token manager failed to generate access token: federated token response does not have access token. {"error":"invalid_target","error_description":"The target service indicated by the \"audience\" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn't exist."}	thread=16
2024-01-31T16:49:06.720599Z	info	token	Prepared federated token request for aud "identitynamespace:<FLEET-HOST-PROJECT-ID>.svc.id.goog:https://gkehub.googleapis.com/projects/<FLEET-HOST-PROJECT-ID>/locations/northamerica-northeast1/memberships/<MEMBERSHIP-NAME>"
2024-01-31T16:49:06.744080Z	error	token	federated token response does not have access token{"error":"invalid_target","error_description":"The target service indicated by the \"audience\" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn't exist."}
2024-01-31T16:49:06.745722Z	warning	envoy config external/envoy/source/common/config/grpc_stream.h:163	StreamAggregatedResources gRPC config stream to xds-grpc closed: 16, transport: per-RPC creds failed due to error: token manager failed to generate access token: federated token response does not have access token. {"error":"invalid_target","error_description":"The target service indicated by the \"audience\" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn't exist."}	thread=16
2024-01-31T16:49:10.936590Z	error	googleca	Failed to create certificate: rpc error: code = Unauthenticated desc = transport: per-RPC creds failed due to error: token exchange failed: exchange failed all retries, last error: token exchange request failed: status code 400 body {"error":"invalid_target","error_description":"The target service indicated by the \"audience\" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn't exist."}, (aud: identitynamespace:<FLEET-HOST-PROJECT-ID>.svc.id.goog:https://gkehub.googleapis.com/projects/<FLEET-HOST-PROJECT-ID>/locations/northamerica-northeast1/memberships/<MEMBERSHIP-NAME>, STS endpoint: https://sts.googleapis.com/v1/token)

 

The <FLEET-HOST-PROJECT-ID>.svc.id.goog doesn't exist yet. Do I need to create it manually or by creating an empty cluster in the <FLEET-HOST-PROJECT-ID> project? In any case, this doesn't seem to be documented (might be totally wrong here).

I'm following the docs from here: https://cloud.google.com/anthos/fleet-management/docs/register/gke#gcloud (Switch to gcloud and checkout the second bullet point under Register an existing cluster sub-heading) and https://cloud.google.com/service-mesh/docs/managed/provision-managed-anthos-service-mesh#requirement.... I can also confirm that the required permissions for cross-project fleet access i.e, service mesh agent and anthos agent are set up.

Incase it helps, here's my mesh status:

 

> gcloud container fleet mesh describe --project <FLEET-HOST-PROJECT-ID>
createTime: '2023-12-22T14:22:04.472550147Z'
fleetDefaultMemberConfig:
  mesh:
    management: MANAGEMENT_AUTOMATIC
membershipSpecs:
  projects/<FLEET-HOST-PROJECT-NUMBER>/locations/northamerica-northeast1/memberships/<MEMBERSHIP-NAME>:
    mesh:
      management: MANAGEMENT_AUTOMATIC
    origin:
      type: USER
membershipStates:
  projects/<FLEET-HOST-PROJECT-NUMBER>/locations/northamerica-northeast1/memberships/<MEMBERSHIP-NAME>:
    servicemesh:
      controlPlaneManagement:
        details:
        - code: REVISION_READY
          details: 'Ready: asm-managed'
        state: ACTIVE
      dataPlaneManagement:
        details:
        - code: OK
          details: Service is running.
        state: ACTIVE
    state:
      code: OK
      description: |-
        Revision(s) ready for use: asm-managed.
        All Canonical Services have been reconciled successfully.
      updateTime: '2024-01-31T12:37:00.976267024Z'
name: projects/<FLEET-HOST-PROJECT-ID>/locations/global/features/servicemesh
resourceState:
  state: ACTIVE
spec: {}
updateTime: '2024-01-31T12:37:02.221523161Z'

 

 

Thanks!

 

 

 

1 1 684
1 REPLY 1

Hi, 

The error logs you provided indicate a problem with obtaining a federated access token due to an "invalid_target" error, which suggests an issue with the audience parameter configuration or the existence of the service account or resource targeted.

Here are some steps to troubleshoot:

(1) Ensure that GKE cluster is registered to the fleet in the host project. 

(2) Ensure that the service account used by the Istio-proxy (part of the ASM on your GKE cluster) has the necessary permissions across both the fleet host project and the GKE cluster's project.

(3) Verify that the service account has roles such as:

-  roles/gkehub.connect for the fleet registration and

-roles/servicemanagement.serviceControlland 

and 

roles/serviceusage.serviceUsageConsumer for service management.

Kind regards

Mahmoud

Top Labels in this Space