Skip to content

Commit a764cb9

Browse files
tpodowdPrasanna Santhanam
authored andcommitted
CLOUDSTACK-3211: Add help docs to S3 secondary storage configuration.
When adding an S3 secondary storage, the administrator will now be shown help for each input field making it friendlier to use. Signed-off-by: Prasanna Santhanam <tsp@apache.org> (cherry picked from commit 74643c9561b1ea564f180c3780ef762e97e7c10b)
1 parent 8d0f08a commit a764cb9

2 files changed

Lines changed: 50 additions & 4 deletions

File tree

‎ui/scripts/docs.js‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,43 @@ cloudStack.docs = {
660660
desc: 'The exported path from the server',
661661
externalLink: ''
662662
},
663+
// S3
664+
helpS3AccessKey: {
665+
desc: 'This identifies the S3 user account',
666+
externalLink: ''
667+
},
668+
helpS3SecretKey: {
669+
desc: 'The password matching the S3 Access Key',
670+
externalLink: ''
671+
},
672+
helpS3Bucket: {
673+
desc: 'The S3 bucket to store CloudStack data in. The bucket must be created and owned by the same user identified by the S3 Access Key',
674+
externalLink: ''
675+
},
676+
helpS3Endpoint: {
677+
desc: 'The S3 server to use. Non-standard ports can be appended to the hostname as per s3.amazonaws.com:8080',
678+
externalLink: ''
679+
},
680+
helpS3ConnectionTimeout: {
681+
desc: 'The number of milliseconds to wait when establishing an S3 connection. This is optional',
682+
externalLink: ''
683+
},
684+
helpS3MaxErrorRetry: {
685+
desc: 'The number of times to retry S3 requests before failing. This is optional',
686+
externalLink: ''
687+
},
688+
helpS3SocketTimeout: {
689+
desc: 'The number of milliseconds to wait while reading an S3 response. This is optional',
690+
externalLink: ''
691+
},
692+
helpNFSStagingServer: {
693+
desc: 'The name or IP address of the NFS secondary staging server',
694+
externalLink: ''
695+
},
696+
helpNFSStagingPath: {
697+
desc: 'The exported path to use on the NFS staging server',
698+
externalLink: ''
699+
},
663700
// Add SRX
664701
helpSRXIPAddress: {
665702
desc: 'The IP address of the device',

‎ui/scripts/system.js‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14525,24 +14525,28 @@
1452514525
//S3 (begin)
1452614526
accesskey: {
1452714527
label: 'label.s3.access_key',
14528+
docID: 'helpS3AccessKey',
1452814529
validation: {
1452914530
required: true
1453014531
}
1453114532
},
1453214533
secretkey: {
1453314534
label: 'label.s3.secret_key',
14535+
docID: 'helpS3SecretKey',
1453414536
validation: {
1453514537
required: true
1453614538
}
1453714539
},
1453814540
bucket: {
1453914541
label: 'label.s3.bucket',
14542+
docID: 'helpS3Bucket',
1454014543
validation: {
1454114544
required: true
1454214545
}
1454314546
},
1454414547
endpoint: {
14545-
label: 'label.s3.endpoint'
14548+
label: 'label.s3.endpoint',
14549+
docID: 'helpS3Endpoint'
1454614550
},
1454714551
usehttps: {
1454814552
label: 'label.s3.use_https',
@@ -14552,13 +14556,16 @@
1455214556
converter: cloudStack.converters.toBooleanText
1455314557
},
1455414558
connectiontimeout: {
14555-
label: 'label.s3.connection_timeout'
14559+
label: 'label.s3.connection_timeout',
14560+
docID: 'helpS3ConnectionTimeout'
1455614561
},
1455714562
maxerrorretry: {
14558-
label: 'label.s3.max_error_retry'
14563+
label: 'label.s3.max_error_retry',
14564+
docID: 'helpS3MaxErrorRetry'
1455914565
},
1456014566
sockettimeout: {
14561-
label: 'label.s3.socket_timeout'
14567+
label: 'label.s3.socket_timeout',
14568+
docID: 'helpS3SocketTimeout'
1456214569
},
1456314570

1456414571
createNfsCache: {
@@ -14602,13 +14609,15 @@
1460214609
nfsCacheNfsServer: {
1460314610
dependsOn: 'createNfsCache',
1460414611
label: 'label.nfs.server',
14612+
docID: 'helpNFSStagingServer',
1460514613
validation: {
1460614614
required: true
1460714615
}
1460814616
},
1460914617
nfsCachePath: {
1461014618
dependsOn: 'createNfsCache',
1461114619
label: 'label.path',
14620+
docID: 'helpNFSStagingPath',
1461214621
validation: {
1461314622
required: true
1461414623
}

0 commit comments

Comments
 (0)