com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Subscribing to a Cartridge via CLI

Overview

CLI command
subscribe-cartridge
        
DescriptionUsed to subscribe to a cartridge in Private PaaS.
Command formats

Subscribing to a data cartridge

subscribe-cartridge <CARTRIDGE-TYPE> <CARTRIDGE-ALIAS> -dp <DEPLOYMENT-POLICY> -ap <AUTO-SCALING-POLICY> -pv <PERSISTENCE-VOLUME> -v <VOLUME-SIZE> -t <REMOVE-ON-TERMINATION>

Subscribing to a framework cartridge

subscribe-cartridge <CARTRIDGE-TYPE> <CARTRIDGE-ALIAS> -r <REPO-URL> -u <REPO-USERNAME> -p <REPO-PASSWORD> -cm -dp <DEPLOYMENT-POLICY> -ap <AUTO-SCALING-POLICY> -pv <PERSISTENCE-VOLUME> -v <VOLUME-SIZE> -t <REMOVE-ON-TERMINATION>

Subscribing to an application cartridge

subscribe-cartridge <CARTRIDGE-TYPE> <CARTRIDGE-ALIAS> -dp <DEPLOYMENT-POLICY> -ap <AUTO-SCALING-POLICY> -pv <PERSISTENCE-VOLUME> -v <VOLUME-SIZE> -t <REMOVE-ON-TERMINATION>

Subscribing to a multi-tenant cartridge/ service group of multi-tenant cartridges

subscribe-cartridge <CARTRIDGE-TYPE> <CARTRIDGE-ALIAS> -r <REPO-URL> -u <REPO-USERNAME> -p <REPO-PASSWORD>

Parameter Definitions 

Parameter definition for data cartridges

Short OptionLong OptionDescriptionRequiredExample Value
N/AN/AType of the cartridgeYesmysql
N/A--data-alias
Alias used in the cartridge definitionYesmysql111
-dp--deployment-policyDeployment policy used in the cartridge definitionYes

economyDeploymentPolicy

-ap--autoscaling-policy
Auto-scaling policy used in the cartridge definitionYes

simpleAutoscalePolicy

-pv--persistence-volume
Whether a persistence volume should be attached to the cartridgeNotrue
-v--volume-size
Size of the persistence volume that should be attached to the cartridgeNo2GB
-t--remove-on-termination
Whether the attached persistence volume should be removed when the instance is terminatedNotrue

Parameter definition for framework  cartridges

Short OptionLong OptionDescriptionRequiredExample Value
N/AN/AType of the cartridgeYesphp
N/A--data-alias Alias used in the cartridge definitionYesphp111
-r--repo-url
URL of the repository where the source of the cartridge is stored.Yes

https://github.com/test/testphp.git

-u--usernameUsername of the source repositoryNo

test

-p--passwordPassword of the source repositoryNotest123
-cm--enable-commitsWhether auto commits are allowed in the Git repo of the cartridge. For more information, see Auto Commit.NoN/A
-dp--deployment-policyDeployment policy used in the cartridge definitionYeseconomyDeploymentPolicy
-ap--autoscaling-policy
Auto-scaling policy used in the cartridge definitiontruesimpleAutoscalePolicy
-pv--persistence-volume
Whether a persistence volume should be attached to the cartridgeNotrue
-v--volume-size Size of the persistence volume that should be attached to the cartridgeNo2GB
-t--remove-on-termination
Whether the attached persistence volume should be removed when the instance is terminatedNotrue

Parameter definition for application  cartridges

Short OptionLong OptionDescriptionRequiredExample Value
N/AN/AType of the cartridgeYeswordpress
N/A--data-aliasAlias used in the cartridge definitionYeswordpress111
-dp--deployment-policyDeployment policy used in the cartridge definitionYeseconomyDeploymentPolicy
-ap--autoscaling-policy
Auto-scaling policy used in the cartridge definitionYessimpleAutoscalePolicy
-pv--persistence-volume Whether a persistence volume should be attached to the cartridgeNotrue
-v--volume-size Size of the persistence volume that should be attached to the cartridgeNo2GB
-t--remove-on-termination Whether the attached persistence volume should be removed when the instance is terminatedNotrue

Example

Use case: Subscribe to the cartridge with the type defined as 'php', the alias defined as 'php111', the URL of the source repo defined as https://github.com/test/testphp.git, the deployment policy defined as economyDeploymentPolicy, and the auto-scaling policy defined as simpleAutoscalePolicy.

 subscribe-cartridge php php111 -r https://github.com/test/testphp.git -dp economyDeploymentPolicy -ap simpleAutoscalePolicy

Sample Output

You have successfully subscribed to php cartridge with alias php111.
GIT Repository URL: https://github.com/test/testphp.git
(This might take few minutes... depending on repo size)

Please map the host name "php111.apachestratos.org" to LB IP
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.