Commit Graph

94 Commits

Author SHA1 Message Date
Gustavo Herzmann 3c38ad34d8 Update stx-platformclients image to stx.9.0-v1.5.14
Updated image with distributedcloud-client changes

Story: 2010852
Task: 49730
Depends-On: https://review.opendev.org/c/starlingx/root/+/913445

Change-Id: Ia057d013ac8eb6fb815d65edae1811cb83a246c3
Signed-off-by: Gustavo Herzmann <gustavo.herzmann@windriver.com>
2024-03-18 13:10:36 +00:00
Hugo Brito a59071b1a7 Fix constraints file in tox.ini
The constraints file used for tox.ini root was removed.
We need to update the file to use the StarlingX Debian constraints file.

Test Plan:
PASS - Run tox command

Closes-bug: 2055734

Change-Id: I0f973f3aeafd42b62707bbb1dc43428d2bab6252
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
2024-03-01 19:00:58 -03:00
Guilherme Costa a87ab151d9 Adding software alias to remote-cli
This adds software command alias to the list of commands that can
be run through the remote-cli.

Test Plan:

Pass: After configuring the remote-cli, certify that the software
      command (e.g., software list) was executed from the Docker image.

Depends-On: https://review.opendev.org/c/starlingx/update/+/901240
Depends-On: https://review.opendev.org/c/starlingx/upstream/+/901241

Story: 2010676
Task: 49165

Change-Id: I41be730022d77ba1c4898aa7dd2cc33c8e39e7e8
Signed-off-by: Guilherme Costa <guilherme.costa@windriver.com>
2023-11-30 12:48:23 -03:00
Guilherme Costa 8384f87b1c Update stx-platformclients image to version stx.9.0-v1.5.13
Updated image with software client.

Depends-on: https://review.opendev.org/c/starlingx/root/+/898982

Story: 2010676
Task: 48977

Change-Id: Ifd785f48443cf9ad6b3d975669e3be4e9aecc644
Signed-off-by: Guilherme Costa <guilherme.costa@windriver.com>
2023-10-20 17:29:54 -03:00
Victor Romano a71e3302b1 Update stx-platformclients image to stx.9.0-v1.5.12
Updated image with distributedcloud-client changes.

Story: 2010756
Task: 48732

Change-Id: Id8217c18bc91dfca5d7ae45462c0e2402c111131
Signed-off-by: Victor Romano <victor.gluzromano@windriver.com>
2023-09-05 16:20:24 -03:00
Davlet Panech 89fb637e7a remote-cli: Update default app image to Debian
Use latest debian tag for stx-openstackclients, rather than centos

Story: 2010226
Task: 48667

Change-Id: Ia63c499066080e5df5231d3e2d9df8e304b07708
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-08-24 12:21:17 -04:00
Christopher Souza a641a46448 Update stx-platformclients image to stx.9.0-v1.5.11
Updated image with distributedcloud-client changes

Story: 2010584
Task: 48300
Depends-On: https://review.opendev.org/c/starlingx/root/+/887160

Change-Id: I429e7fcff9b75ad047ea21547d41ea677d0d1b87
Signed-off-by: Christopher Souza <Christopher.DeOliveiraSouza@windriver.com>
2023-06-28 08:59:49 -03:00
Davlet Panech c1f760ef64 Fix github mirroring for this repo
Updating the rsa ssh host key based on:
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

Note: In the future, StarlingX should have a zuul job and
secret setup for all repos so we do not need to do this
for every repo.

Needed to rename the secret, because zuul fails if like-named
secrets have diffent values in different branches of the same
repo.

Partial-Bug: #2015246
Change-Id: I9f694abb8cdf08ddc6ea371efacc809c637750a4
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2023-04-28 12:38:50 -04:00
Luiz Felipe Kina a7fb94d896 Update stx-platformclients image to version stx.9.0-v1.5.10
Updated image with fix for python warning message.

Partial-bug: 1999563
Depends-on: https://review.opendev.org/c/starlingx/root/+/875654

Signed-off-by: Luiz Felipe Kina <LuizFelipe.EiskeKina@windriver.com>
Change-Id: I135a53062c11510e9b5e4662cd265ec1601c5f72
2023-03-02 14:53:17 +00:00
Al Bailey d32a86a246 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I31e9f1b78c5a091317b8f595253f7bf6b2eccf14
2022-12-26 22:03:09 +00:00
Luiz Felipe Kina 4e96f48943 Fix typo for stx-platformclients
There was a typo on the last review for the updated image tag for
stx-platformclients, changing it to be the same between the tarball
and docker hub.

Closes-bug: 1998955

Signed-off-by: Luiz Felipe Kina <LuizFelipe.EiskeKina@windriver.com>
Change-Id: I2fadb392013b72e7f10d3421633ab7823ca88c51
2022-12-06 17:40:51 +00:00
Luiz Felipe Kina 9f3b081df5 Update stx-platformclients image to version stx.8.0-v1.5.9
Updated image with the new fixes since the last build

Partial-Bug: 1995020
Depends-On: https://review.opendev.org/c/starlingx/root/+/862536

Signed-off-by: Luiz Felipe Kina <LuizFelipe.EiskeKina@windriver.com>
Change-Id: I00f1c13b885f55936a374771a2720a482d7ee3ea
2022-10-27 17:26:01 -04:00
Andy Ning 22b712caa6 Update stx-platformclients image to version stx.7.0-v1.5.8
Updated image with the new fixes since the last build

Partial-Bug: 1980417
Depends-On: https://review.opendev.org/c/starlingx/root/+/849137
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Change-Id: I276c017871757ab8919216e7840ce7e0ddb00525
2022-07-08 14:27:25 -04:00
mbiasido 2c3384df97 Update stx-platformclients image to version stx.7.0-v1.5.7
Updated image with the new fixes since the last build

Partial-Bug: #1978836
Depends-On: https://review.opendev.org/c/starlingx/root/+/846003

Signed-off-by: mbiasido <Mauricio.BiasiDoMonteCarmelo@windriver.com>
Change-Id: I0b42cc0cb1d3613ebb714a348524ba94abd8e1bc
2022-06-15 11:03:56 -04:00
Douglas Henrique Koerich d134f2ffad [PTP dual NIC config] Update stx-platformclients
Updating stx-platformclients to stx.7.0-v1.5.6, in order to
support the remote access to new PTP CLI commands.

Test Plan:
PASS: Verified PTP commands using tag
master-centos-stable-20220308T014755Z.0 in an AIO-SX system installed
with stx/7.0.

Task: 44737
Story: 2009248
Signed-off-by: Douglas Henrique Koerich <douglashenrique.koerich@windriver.com>
Change-Id: I25f21b9557129cee5c3862ff80a98e7f0c45a60c
2022-03-10 10:31:08 -03:00
Thiago Miranda c6152f6022 Update stx-platformclients image to version stx.7.0-v1.5.5
Updated image with the new fixes since the last build and fixes the
kubectl version from 1.21.3 to 1.21.8.

Closes-Bug: #1958551
Depends-On: https://review.opendev.org/c/starlingx/root/+/825884

Signed-off-by: Thiago Miranda <ThiagoOliveira.Miranda@windriver.com>
Change-Id: I5835502e49f1757b1a8d5ab3a46e8e3db0b36803
2022-01-21 16:38:33 -05:00
Thiago Miranda 73a868d45d Update stx-platformclients image to version stx.7.0-v1.5.4
Updated image with the new fixes since the last build and fixes the
kubectl version from 1.5.4 to 1.21.3.

Closes-Bug: #1955427
Depends-On: https://review.opendev.org/c/starlingx/root/+/824558

Signed-off-by: Thiago Miranda <ThiagoOliveira.Miranda@windriver.com>
Change-Id: I90840cd61fa0b61b586fa28ca762159fb686a707
2022-01-13 07:48:24 -05:00
Thiago Miranda 2ca858a604 Change the entrypoint of the image to always use bash
To fix the kubectl version in the commit that it depends on, the
CUSTOMIZATION variable of the file
stx-platformclients.stable_docker_image had to be used.

But when we are building a new image with CUSTOMIZATION, the
build-stx-images.sh script put a CMD ["bash"] in the image, making the
old way to call commands in stx-platformclients to no longer work.

This commit solves this issue, by forcing the entrypoint to always
use bash and making all commands run as with "bash -c <command>"

Test Plan:
- Tested this change with new and old stx-platformclients versions.
  It work with the image that has the kubectl fix and the older ones.

Partial-Bug: #1955427
Depends-on: https://review.opendev.org/c/starlingx/upstream/+/822356

Signed-off-by: Thiago Miranda <ThiagoOliveira.Miranda@windriver.com>
Change-Id: Ieae227daee875bc4b4b42509cbcb78350360d02c
2021-12-20 15:18:42 -05:00
Thiago Miranda 34e46bcdd9 Update stx-platformclients image to version 1.5.3
Updated image with the new fixes since the last build

Partial-Bug: #1952400
Depends-On: https://review.opendev.org/c/starlingx/root/+/820863

Signed-off-by: Thiago Miranda <ThiagoOliveira.Miranda@windriver.com>
Change-Id: I7283123fc3f6b1c3c5d0e4b590fc96bb667492c9
2021-12-07 08:47:01 -05:00
Thiago Miranda b40f7eb7c0 Update stx-platformclients image to version 1.5.2
Updated image with the new fixes since the last build

Story: 2008943
Task: 43834
Task: 44050
Depends-On: https://review.opendev.org/c/starlingx/root/+/819445

Signed-off-by: Thiago Miranda <ThiagoOliveira.Miranda@windriver.com>
Change-Id: I9a852cae9bb671c9ba215f6b46b6a70aa7467b5b
2021-11-30 13:37:43 -05:00
Zuul f87eb53be4 Merge "Add debian_build_layer.cfg file" 2021-11-24 18:04:06 +00:00
Joao Soubihe 121a2d8b6c Adding sw-manager alias to remote-cli
This adds sw-manager command alias to the list of commands that can
be run through the remote-cli.

Depends-On: https://review.opendev.org/c/starlingx/gui/+/816525
Depends-On: https://review.opendev.org/c/starlingx/root/+/816683
Closes-Bug: #1949620
Signed-off-by: Joao Soubihe <JoaoPaulo.Soubihe@windriver.com>
Change-Id: I950aba2b2b1f27ded4105a5fb2b2ce645713bbbe
2021-11-04 10:36:22 -03:00
Joao Soubihe 651d9b5778 Update stx-platformclients tag to stx.6.0-v1.5.0
This commit updates the image with the updated clients.

Story: 2008675
Task: 43598
Depends-On: https://review.opendev.org/c/starlingx/root/+/813688
Signed-off-by: Joao Soubihe <JoaoPaulo.Soubihe@windriver.com>
Change-Id: I631417927ddf6065a7fd87b1656f70aa61661128
2021-10-13 16:59:09 -04:00
Scott Little 361eaa9f84 Add debian_build_layer.cfg file
Story: 2008862

Task: 43154
Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I71cba398959a5484e988cc588d8cfe019de2f4d9
2021-10-05 14:04:07 -04:00
Rafael Jordão Jardim 638425380e Update stx-platformclients tag to stx.5.0-v1.4.3
This commit updates the image with the updated clients.

Test:
Some normal commands
Commands related with https dcmanager that wasn't working
System application-upload that wasn't working when executed
from remote cli

Closes-Bug: 1928233
Closes-Bug: 1928231
Signed-off-by: Rafael Jordão Jardim <RafaelJordao.Jardim@windriver.com>
Change-Id: I7cc24fece1a235a07f2007bc6b9b67aa2d8ae837
2021-05-12 18:28:50 +00:00
Rafael Jardim c47d86b859 Add OS_CACERT on the client_wrapper
This change is required to avoid the user pass a flag in each
request if this environment variable is available inside the
container the clients will get that to make https requests in
the remote cli

Closes-bug:1927723
Depends-On:I4221657b97592b319b3fbf54b5b8c6d325ec9aa3
Signed-off-by: Rafael Jardim <rafaeljordao.jardim@windriver.com>
Change-Id: Iddc982c4394e06c3cc14da4b33145f45b1b2f412
2021-05-07 11:19:56 +00:00
Zuul 0488b9cce7 Merge "Add volume map to keep the repositories.yml" 2021-04-29 12:02:36 +00:00
Rafael Jordão Jardim 8a7f010ce3 Add volume map to keep the repositories.yml
This solution is to keep the data from the helm
config. The helm repo commands are managed locally
and that is the reason that the command helm repo
add works, the file doesn't exist but this command
creates that, but when it runs helm repo list the
file repositories.yml doesn't exist anymore because
the container execution didn't keep that.

Attention: In the solution it is mapping the default
path /root/.config/helm/ and /root/.cache/helm/
inside the container, if for some reason the it is
changed passing a flag --repository-config or
--repository-cache this new path must be changed in
the client_wrapper.sh file, otherwise it will come
back to the same behavior.

There is no reason to change this default path, it is
inside the container of the remote cli, but we have
to keep it in mind, for some possible future issues.

Closes-bug: 1925802
Signed-off-by: Rafael Jordão Jardim <RafaelJordao.Jardim@windriver.com>
Change-Id: I3180513b76c75221b6143a6da4d45a600e477662
2021-04-27 15:58:38 +00:00
Charles Short fc5c7e7801 Fix zuul errors due to changes in dependencies
Pin hacking to < 4.0.1 to fix zuul gate issues.

Test:
Ran tox -e pep8 command to validate the pep8 job and result.

Related-Bug: 1926172

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I39e889f069aab03e301c3050aa6193e048d74e66
2021-04-26 11:47:35 -04:00
Rafael Jordão Jardim 19e87afefa Update stx-platformclients tag to stx.5.0-v1.4.2
This commit updates the image with the updated clients
cgts-client and distributed-cloud-client to execute both
in python2 and python3.

Story: 2007106
Task: 42315
Depends-On: https://review.opendev.org/c/starlingx/root/+/787269
Signed-off-by: Rafael Jordão Jardim <RafaelJordao.Jardim@windriver.com>
Change-Id: Ifae4abe3a062c793cb2f7ced35994974519b17ab
2021-04-22 16:31:51 +00:00
Zuul bbdbcf601b Merge "Update stx-platformclients tag to stx.5.0-v1.4.1" 2021-04-16 13:37:33 +00:00
Davlet Panech 0c2645d8dd Update stx-platformclients tag to stx.5.0-v1.4.1
This commit updates the tag to pick up the patch that builds this image
in python2, rather than python3 environment because stx-platformclients
currently doesn't support python3.

Change-Id: Ie254debfeee9c9a5cb1ec24a16b6075a0a326077
Depends-On: https://review.opendev.org/c/starlingx/root/+/786486
Depends-On: https://review.opendev.org/c/starlingx/clients/+/786504
Closes-Bug: 1891416
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
2021-04-15 17:14:37 -04:00
albailey a6a1cd5aef Fix zuul errors due to changes in dependencies
Specifying certain upper limits for components
pulled in by test-requirements.txt

Partial-Bug: 1922590
Signed-off-by: albailey <Al.Bailey@windriver.com>
Change-Id: I1e881ccf0d1ac7f96312b1e573b4b3aa950dbc6f
2021-04-15 16:06:36 -05:00
Teresa Ho bcb588c39b Update stx-platformclients tag to stx.5.0-v1.4.0
Update stx-platformclients image to include commit for supporting
firmware update dcmanager orchestration commands

Depends-On: https://review.opendev.org/#/c/745409/
Story: 2007875
Task: 40633

Change-Id: Ic24645e7231a6ea4e2382750b8b8e157d95e730a
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2020-08-10 20:37:00 -04:00
Sharath Kumar K 697b43e00f Tox and Zuul job for the python code scan in starlingx/clients
Setting up the bandit tool for the scanning of HIGH severity issues
in the python codes under Starlingx/clients folder.
Expecting this merge will enable zuul job for CI/CD of bandit scan.

Configuration files:
1. tox.ini for adding bandit environment and command.
2. test-requirements.txt for adding bandit version.
3. .zuul.yaml file for adding bandit job and configuring under
   check job to run code scan every time before code commit.

Test:
Run tox -e bandit command inside the fault folder to validate the
bandit scan and result.

Please note:
Changes will be implemented in batches and  this is Batch5 change.

Story: 2007541
Task: 39624
Depends-On: https://review.opendev.org/#/c/721294/

Change-Id: I602b43f0f0bc70a1eb48b11aa07fdf2e286db408
Signed-off-by: Sharath Kumar K <sharath.kumar@intel.com>
2020-06-29 08:24:30 +00:00
Teresa Ho 7f52090150 Update stx-platformclients tag to stx.4.0-v1.3.0
Depends-On: https://review.opendev.org/#/c/736259/
Story: 2006740
Task: 39498

Change-Id: I77fffbbe5e7a332f32bf6c2ace462174cf8befbf
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2020-06-17 13:15:11 -04:00
Andreas Jaeger db1f8830ad Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ic6fe349728aabb568f8c56194953a3591412dae6
2020-06-04 14:05:42 +02:00
Jerry Sun 3bc8b3b5b8 Update stx-platformclients tag to stx.4.0-v1.2.0
Update stx-platformclients image to include commit for supporting
multiple dex backends. This commit makes changes to the oidc-auth
CLI tool, which is part of the stx-platformclients image.
reference commit:
https://review.opendev.org/#/c/726234/

Depends-On: https://review.opendev.org/729754
Story: 2006711
Task: 39696

Change-Id: Ia0df8c8158733c663753d024e5689be384d09fe6
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
2020-05-21 08:31:44 -04:00
Stefan Dinescu cc5ca27c7f Update stx-platformclients tag to stx.4.0-v1.1.0
Change-Id: Ice55a06f8e0d32d1ac2373e29be8fde7391345f5
Story: 2007518
Task: 39513
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2020-04-24 05:54:18 +00:00
Stefan Dinescu 8bf932a368 Fix remote dcmanager access
Dcmanager needs another environment variable set in order to properly
work with the remote setup.

The variable is OS_ENDPOINT_TYPE and must be set to "publicURL" for
any kind of remote access. Unless otherwise specified, dcmanager
defaults to "internalURL".

The issue only affect dcmanager, as other platform commands (system
and fm) work without this variable set, but also don't seem to be
affected in any way when this variable is configured to "publicURL".

Change-Id: Ic70de40ff169d07800f9ee42f744b12768dc70ac
Closes-bug: 1869258
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2020-03-27 15:26:51 +02:00
Stefan Dinescu 6c6f0b0b18 Add support for overriding docker images
The clients tarball provides a set of default docker images
to be used. This commit adds support for users to change
those default images to other images from any registry.

Changes included in this commit:
- add the "-p" and "-a" parameters to the "configure_client.sh"
  script in order to override default platform and application
  image locations
- fixed README file to properly handle IPv6 address when
  configuring the authentication file  for helm
- forced host networking for client docker containers in order
  to better handle network connectivity to the remote setups
  we want to connect to

Change-Id: I9b88ad91ee873330a0fd62ec7eb6056dd544a758
Story: 2006711
Task: 39150
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2020-03-25 11:50:59 +02:00
Stefan Dinescu be41771eda Support for full image paths
Remote clients always pulled their images from docker.io, with
the only thing changing being the tag of the image. Now, the
full image path is configurable.

Change-Id: Ie62a38a28e456681f4fa40762783f7fc4adbbe4f
Story: 2006711
Task: 39093
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2020-03-19 18:11:49 +02:00
Teresa Ho 0ca280c7a2 Add oidc-auth to the remote CLI
Add oidc-auth to the aliases in the remote CLI.

Story: 2006711
Task: 38919
Depends-On: https://review.opendev.org/#/c/710991/

Change-Id: I66388d801208fb643e67f09800888cf839715382
Signed-off-by: Teresa Ho <teresa.ho@windriver.com>
2020-03-03 07:39:43 -05:00
Bin Qian 04dc9befea Adding job to upload commits to GitHub
Add job to publish clients repo to GitHub

Story: 2007252
Task: 38656

Change-Id: I75d201cd36ce38356e6c164bb170ce3382b88c44
Signed-off-by: Bin Qian <bin.qian@windriver.com>
2020-02-05 10:07:07 -05:00
Kristal Dale 5e3f0fdfb7 Update landing pages for docs and release notes:
- Use updated project name in titles/text
- Correct text for link to Storyboard (docs)
- Correct capitalization in section headings
- Correct formatting for section headings
- Add missing section (docs) to bring inline with other pages
- Update project name in link to release notes
- Update project name in config for docs/releasenotes

Story:2007193
Task:38249

Change-Id: I3a336184cadf910bd66ce4d3349917fc530dcbde
Signed-off-by: Kristal Dale <kristal.dale@intel.com>
2020-01-21 16:34:59 -08:00
Zuul ce63cccc14 Merge "Build layering, add layer build config file" 2019-10-30 13:09:21 +00:00
Stefan Dinescu 9a068d8d6f Fix broken windows 10 remote cli
Kubectl and helm commands didn't properly work under
Windows 10 by using remote CLI.

Changes included:
- add winpty dependency for windows 10 to properly use
  interactive prompt commands
- change Unix paths to full Windows paths to be passed
  to docker only if scripts are run under cygwin
- add information to README file about the new dependency

Change-Id: I4509941e051552133a77dd5c2a7922b2cade3858
Closes-bug: 1849131
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2019-10-24 17:29:14 +03:00
Stefan Dinescu 63d1a87a6c Allow forcing shell prompt option
Some commands are designed to leave you in a shell prompt once
executed, but it is hard to identify all such commands in the
context of remote CLI.

In order to allow users to use such commands, they can force
the shell option or force disable the shell options using the
FORCE_SHELL and FORCE_NO_SHELL variables before the command.

The README has been updated with examples on the use of
these variables

Change-Id: Ica4e155fa21067448b99c4309f4736d39f0a419d
Closes-bug: 1849505
Signed-off-by: Stefan Dinescu <stefan.dinescu@windriver.com>
2019-10-24 13:23:57 +03:00
Andy Ning 328dc75cf2 Add dcmanager to remote cli aliases list
This update added dcmanager command to remote cli aliases list so that
dcmanager is supported in remote cli.

Change-Id: I8de22760fb70cff9108dea0c10f96090b1764cb0
Story: 2004766
Task: 37128
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2019-10-15 11:35:46 -04:00
Scott Little 918a27c07f Build layering, add layer build config file
Story: 2006166
Task: 37123

Change-Id: I9b1851017ef52bd1f35d028a53412bae25487d1e
Signed-off-by: Scott Little <scott.little@windriver.com>
2019-10-15 19:44:30 +08:00