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

organization import errors #466

Closed
kurtkanaskie opened this issue May 22, 2024 · 0 comments · Fixed by #471
Closed

organization import errors #466

kurtkanaskie opened this issue May 22, 2024 · 0 comments · Fixed by #471
Labels
bug Something isn't working

Comments

@kurtkanaskie
Copy link
Collaborator

kurtkanaskie commented May 22, 2024

Use export APIGEECLI_DEBUG=true for better debugging info.

ISSUE 1: local fix
--help for --folder is incorrect
Shows: folder containing API proxy bundles
Should be: folder containing organization resources

ISSUE 2: local fix to use org__kvms.json
org level KVM export creates file name: $ORG__kvms.json
import incorrectly builds kvm file name: org_$ORG__kvms.json
Export uses: $ORG_kvms.json
For export - import need to cp ${EXPORT_ORG}__kvms.json ${IMPORT_ORG}__kvms.json
Or better org__kvms.json for both export and import

For envs we use $ENV__kvms.json

ISSUE 3: local fix except for operations completions
Import of environment level KVMs not working due to incorrect file names.
When importing envs, need to wait to operations complete before moving on to import env resources.
As a work around import environments first and wait.

ISSUE 5: - fixed
Cannot import apps belonging to developers with "+" in email: "[email protected]"
Needed to url.QueryEscape email when deleting auto created key.

For example, during apps import

ERROR: 2024/05/23 07:16:39 apps.go:498: Not found - the server cannot find the requested resource
{
  "error": {
    "code": 404,
    "message": "DeveloperId kurtkanaskie [email protected] does not exist in organization {1}",
    "status": "NOT_FOUND",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.PreconditionFailure",
        "violations": [
          {
            "type": "developer.service.DeveloperIdDoesNotExist",
            "subject": "[2002:a17:531:970d::]:4399:bccwh16-20020a05615e091000b0026311028bd9:9805:75661:175421027",
            "description": "DeveloperId kurtkanaskie [email protected] does not exist in organization {1}"
          }
        ]
      },
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "requestId": "5668586840605940302"
      }
    ]
  }
}

@kurtkanaskie kurtkanaskie added the bug Something isn't working label May 23, 2024
@kurtkanaskie kurtkanaskie changed the title organization import improvements organization import errors May 23, 2024
@srinandan srinandan linked a pull request May 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant