Skip to content

Commit 1128998

Browse files
committed
Additional changes
1 parent 4bde84f commit 1128998

1 file changed

Lines changed: 24 additions & 27 deletions

File tree

source/installguide/primate.rst

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
specific language governing permissions and limitations
1414
under the License.
1515
16-
:ref:`primate-install-guide`
17-
1816
Primate Guide
1917
=============
2018

@@ -29,16 +27,8 @@ and Ant Design for Apache CloudStack.
2927
:alt: alternate text
3028
:align: left
3129

32-
With Apache CloudStack 4.14, a technical preview of Primate is proposed that
33-
users can evaluate. The technical preview release is not an officially voted
34-
release by the Apache CloudStack project but offers a snapshot build of Primate
35-
for users for testing and evaluation. The official Primate GA is expected with
36-
the next CloudStack release where the legacy UI will be deprecated, and the
37-
legacy UI will be removed in an eventual major CloudStack release.
38-
39-
.. parsed-literal::
40-
41-
NOTE: Primate tech-preview is not suitable to run in production environments.
30+
Primate GA was released with CloudStack 4.15, where the legacy UI is deprecated,
31+
and will be removed in an eventual major CloudStack release.
4232

4333
`User participation in the community mailing lists
4434
<http://cloudstack.apache.org/mailing-lists.html>`_ is encouraged. Users may
@@ -49,28 +39,28 @@ Requirements
4939

5040
Primate uses API auto-discovery to discover APIs allowed for a logged-in user
5141
and creates navigation and views based on that.
52-
53-
- Apache CloudStack 4.13.1.0 or later
42+
- Apache CloudStack 4.15 or later
5443
- API auto-discovery (listApis enabled)
5544
- All modern browsers that are `ES5-compliant <https://github.com/vuejs/vue#browser-compatibility>`_
5645

5746
In theory Primate can work with any older version of CloudStack.
5847
However, several Primate list views require API pagination support, some of which are
59-
available starting Apache CloudStack 4.13.1.0.
48+
available starting Apache CloudStack 4.15 as well as several other additions which
49+
might not be available prior to Apache CloudStack 4.15.
6050

6151
Installation on CentOS
6252
~~~~~~~~~~~~~~~~~~~~~~
6353

64-
Users running management server (4.13 or above) on CentOS can setup the
65-
following Primate tech-preview repository:
54+
Users running management server (4.15 or above) on CentOS can setup the
55+
following Primate repository:
6656

6757
.. parsed-literal::
6858
6959
rpm --import https://download.cloudstack.org/primate/release.asc
70-
cat << EOF > /etc/yum.repos.d/cloudstack-primate-tech-preview.repo
71-
[cloudstack-primate-tech-preview]
60+
cat << EOF > /etc/yum.repos.d/cloudstack-primate.repo
61+
[cloudstack-primate]
7262
name=cloudstack
73-
baseurl=https://download.cloudstack.org/primate/testing/preview/centos/
63+
baseurl=https://download.cloudstack.org/primate/centos/
7464
enabled=1
7565
gpgcheck=1
7666
gpgkey=https://download.cloudstack.org/primate/release.asc
@@ -89,12 +79,12 @@ management-server-host:8080/client/primate using any modern browser.
8979
Installation on Ubuntu
9080
~~~~~~~~~~~~~~~~~~~~~~
9181

92-
Users running CloudStack management server (4.13 or above) on Ubuntu can setup the following Primate tech-preview repository:
82+
Users running CloudStack management server (4.15 or above) on Ubuntu can setup the following Primate repository:
9383

9484
.. parsed-literal::
9585
9686
apt-key adv --keyserver keys.gnupg.net --recv-keys BDF0E176584DF93F
97-
echo deb https://download.cloudstack.org/primate/testing/preview/debian / > /etc/apt/sources.list.d/cloudstack-primate-tech-preview.list
87+
echo deb https://download.cloudstack.org/primate/debian / > /etc/apt/sources.list.d/cloudstack-primate.list
9888
9989
Next, install Primate:
10090

@@ -114,19 +104,19 @@ Primate archives are tarballs of single-page app builds. They can be simply
114104
downloaded and extracted to the management server webapp directory or hosted
115105
with a custom webserver.
116106

117-
Users can download the builds from https://download.cloudstack.org/primate/testing/preview/archive/
107+
Users can download the builds from https://download.cloudstack.org/primate/archive/
118108

119109
Using Docker
120110
~~~~~~~~~~~~
121111

122-
Users can use docker builds of the tech preview from https://hub.docker.com/r/apache/cloudstack-primate
112+
Users can use docker builds of Primate from https://hub.docker.com/r/apache/cloudstack-primate
123113

124114
For example:
125115

126116
.. parsed-literal::
127117
128-
docker pull apache/cloudstack-primate:tech-preview
129-
docker run -ti --rm -p 8080:80 -v $(pwd)/nginx:/etc/nginx/conf.d:ro apache/cloudstack-primate:tech-preview
118+
docker pull apache/cloudstack-primate:latest
119+
docker run -ti --rm -p 8080:80 -v $(pwd)/nginx:/etc/nginx/conf.d:ro apache/cloudstack-primate:latest
130120
131121
Example nginx config:
132122

@@ -282,6 +272,7 @@ The children should have:
282272
- tabs: array of custom components that will get rendered as tabs in the resource view
283273
- component: the custom component for rendering the route view default list view (table)
284274
- actions: arrays of actions/buttons
275+
- related: a list of associated entitiy types that can be listed via passing the current resource's id as a parameter in their respective list api
285276

286277
Action API
287278
~~~~~~~~~~
@@ -293,11 +284,13 @@ The actions defined for a child shows up as a group of buttons on the default au
293284
- api: The CloudStack API for the action
294285
- icon: the icon to be displayed from AntD's icon set https://vue.ant.design/components/icon/
295286
- label: The action button's name
287+
- message: The action button's confirmation message
296288
- docHelp: Allows to provide a link to a document to provide details on the action
297289
- listView: (boolean) whether to show the action button in list view (table)
298290
- dataView: (boolean) whether to show the action button in resource/data view
299291
- groupAction: Whether the button supports groupable actions when multiple items are selected in the table
300292
- args: list of API arguments to render/show on auto-generated action form
293+
- mapping: The relation of an arg to an api (from which it's id is used as a select-option) or a given hardcoded list of select-options
301294
- show: function that takes in a records and returns a boolean to control if the action button needs to be shown or hidden
302295
- popup: (boolean) when true, displays any custom component in a popup modal than in its separate route view
303296
- component: the custom component to render the action (in a separate route view)
@@ -311,14 +304,15 @@ For example:
311304
api: 'updateVirtualMachine',
312305
icon: 'edit',
313306
label: 'label.action.edit.instance',
307+
message: 'message.action.edit.instance',
314308
docHelp: 'adminguide/virtual_machines.html#changing-the-vm-name-os-or-group',
315309
dataView: true,
316310
args: ['name', 'displayname', 'ostypeid', 'isdynamicallyscalable', 'haenable', 'group'],
317311
show: (record) => { return ['Stopped'].includes(record.state) }
318312
}
319313
]
320314
321-
However, if one's requirement is to perform further operations as part of their form, then a custom Vue component must be defined under the src/views/ folder of the root directory and the defined component must them be imported in the corresponding section's javascript file.
315+
However, if one's requirement is to perform further operations as part of their form, then a custom Vue component must be defined under the src/views/<component> folder of the root directory and the defined component must them be imported in the corresponding section's javascript file. Examples of how to create such views are available in the cloudstack-primate repository
322316

323317
For example:
324318

@@ -388,6 +382,9 @@ Known Issues and Missing Features
388382

389383
- Support for S3 based secondary storage
390384
- Metrics view cell-colouring
385+
- List and switch accounts for saml authorised accounts/domain for a logged in SAML user
386+
- NFS secondary storage list/resource view and add/update actions
387+
- Regions
391388
- Guest network LB support for SSL certificate
392389

393390
Please also refer to open issues on https://github.com/apache/cloudstack-primate/issues

0 commit comments

Comments
 (0)