Fixed an issue while deploying the PostgreSQL on the BigAnimal, the Public IP addresses were not added.

This commit is contained in:
Khushboo Vashi 2022-04-27 17:12:28 +05:30 committed by Akshay Joshi
parent f725cc2307
commit a86a8c6a34
4 changed files with 10 additions and 8 deletions

View File

@ -389,9 +389,9 @@ def deploy_on_biganimal(data):
_private_network
]
if 'public_ip' in data['instance_details']:
if 'biganimal_public_ip' in data['instance_details']:
args.append('--public-ip')
args.append(str(data['instance_details']['public_ip']))
args.append(str(data['instance_details']['biganimal_public_ip']))
_cmd_msg = '{0} {1} {2}'.format(_cmd, _cmd_script, ' '.join(args))
try:

View File

@ -157,7 +157,7 @@ export function getBigAnimalSummary(cloud, bigAnimalInstanceData, bigAnimalDatab
createData('Instance name', bigAnimalInstanceData.name),
createData('Region', bigAnimalInstanceData.region),
createData('Cluster type', bigAnimalInstanceData.cloud_type),
createData('Public IPs', bigAnimalInstanceData.public_ip),
createData('Public IPs', bigAnimalInstanceData.biganimal_public_ip),
];
let instance_size = bigAnimalInstanceData.instance_size.split('||');

View File

@ -142,7 +142,7 @@ define('pgadmin.misc.cloud', [
onrestore:function(){
Alertify.cloudWizardDialog().elements.modal.style.maxHeight=0;
},
}).resizeTo(920, 620);
}).resizeTo(920, 650);
},

View File

@ -464,7 +464,7 @@ class BigAnimalNetworkSchema extends BaseUISchema {
super({
oid: undefined,
cloud_type: '',
public_ip: '',
biganimal_public_ip: '',
...initValues
});
@ -488,8 +488,10 @@ class BigAnimalNetworkSchema extends BaseUISchema {
{'label': gettext('Private'), 'value': 'private'},
{'label': gettext('Public'), 'value': 'public'},
], noEmpty: true,
helpMessage: gettext('Private networking allows only IP addresses within your private network to connect to your cluster.'
+ ' Public means that any client can connect to your clusters public IP address over the internet.')
},{
id: 'public_ip', label: gettext('Public IP range'), type: 'text',
id: 'biganimal_public_ip', label: gettext('Public IP range'), type: 'text',
mode: ['create'], deps: ['cloud_type'],
disabled: (state) => {
if (state.cloud_type == 'public') return false;
@ -498,9 +500,9 @@ class BigAnimalNetworkSchema extends BaseUISchema {
depChange: (state, source)=> {
if(source[0] == 'cloud_type') {
if (state.cloud_type == 'public') {
return {public_ip: obj.initValues.hostIP};
return {biganimal_public_ip: obj.initValues.hostIP};
} else {
return {public_ip: ''};
return {biganimal_public_ip: ''};
}
}
},