Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

[BUG] adding in SAPLaunchpad entitlement loops infinitely when configuring. #256

Closed
2 tasks done
dachtera opened this issue Oct 14, 2022 · 3 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@dachtera
Copy link

dachtera commented Oct 14, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest docker image for BTPSA?

  • I'm using the latest docker image for BTPSA.

Which area is mainly impacted

Cloud Foundry setups

Current Behavior

When attempting to add the SAP Launchpad service with btpsa, the process will loop infinitely until aborted, with no success

Expected Behavior

Entitlement addition should complete.

Steps To Reproduce

Using the following in the json parameters,

"services": [
{
            "name": "SAPLaunchpad",
            "plan": "standard",
            "category": "APPLICATION",
            "entitleonly": true
        }

This was generated from the type-ahead functionality.

Logs and configuration files available?

No response

Anything else?

Output that repeats until manually halted.

####################################################################################################
# Track creation of service instances and app subscriptions
####################################################################################################
[2022-10-13 15:48:36] INFO       : check status of app subscriptions
[2022-10-13 15:48:36] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:48:43] INFO       : check status of app subscriptions
[2022-10-13 15:48:43] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:48:50] INFO       : check status of app subscriptions
[2022-10-13 15:48:50] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:48:56] INFO       : check status of app subscriptions
[2022-10-13 15:48:56] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:03] INFO       : check status of app subscriptions
[2022-10-13 15:49:03] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:09] INFO       : check status of app subscriptions
[2022-10-13 15:49:09] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:16] INFO       : check status of app subscriptions
[2022-10-13 15:49:16] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:22] INFO       : check status of app subscriptions
[2022-10-13 15:49:22] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:29] INFO       : check status of app subscriptions
[2022-10-13 15:49:29] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:35] INFO       : check status of app subscriptions
[2022-10-13 15:49:35] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
[2022-10-13 15:49:42] INFO       : check status of app subscriptions
[2022-10-13 15:49:42] RUN COMMAND: btp --format json list accounts/subscription --subaccount '07f9e26d-ed9d-44e8-bcb4-8d19c9da3aaa'
@dachtera dachtera added the bug Something isn't working label Oct 14, 2022
@lechnerc77
Copy link
Member

lechnerc77 commented Oct 15, 2022

Update on status:

  • Error is located in file btpcli.py, function track_creation_of_subscriptions_and_services.
  • The services called in the subsequent check methods do not respect the setting entitleonly. The check must be executed only for services and subscriptions that should be created.

@lechnerc77
Copy link
Member

This bug is fixed with PR #258 . A new Docker image is available in GitHub packages that contains the fix

@dachtera
Copy link
Author

dachtera commented Oct 17, 2022

Thank you - we removed the entitlement line and 2 of 3 requirements are processing. I need to check on the open bug for cloud-foundry memory next. It appears this must be a manual correction once enabled. Thank You.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants