This is the main patch for the migration of the stable/21.10 charm to charmhub for the stable/train branch (train track on charmhub). This patch initially supports bionic from queens to train, and does not support ussuri. It supports upgrades from bionic-queens to bionic-train (with each intermediate step needed). Crucially it does NOT set a default openstack-origin, which means installing train/stable without specifying the openstack-origin will result in a bionic-queens installation. This is intentional as the branch covers queens to train. func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/883 Change-Id: I86177cb20309fd42941df894cc9ee5a18c36c59f
		
			
				
	
	
		
			14 lines
		
	
	
		
			321 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			321 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
charm=$(grep "charm_build_name" osci.yaml | awk '{print $2}')
 | 
						|
echo "renaming ${charm}_*.charm to ${charm}.charm"
 | 
						|
echo -n "pwd: "
 | 
						|
pwd
 | 
						|
ls -al
 | 
						|
echo "Removing bad downloaded charm maybe?"
 | 
						|
if [[ -e "${charm}.charm" ]];
 | 
						|
then
 | 
						|
    rm "${charm}.charm"
 | 
						|
fi
 | 
						|
echo "Renaming charm here."
 | 
						|
mv ${charm}_*.charm ${charm}.charm
 |