Jump to content

How to reset KATA web Administrator password in KATA 5.0 [KATA/KEDRE]


Recommended Posts

Advice and Solutions (Forum Knowledgebase) Disclaimer. Read before using materials.

Problem

No option to change Local Administrator/Cluster Administrator in pseudo-graphic menu available by default .

Solution

a) Upgrade to 5.1

b) Follow steps:

  1. Download an archive with WHL packets.
  2. Upload it to KATA CN to /tmp/change_password.zip

  3. Extract (we have no unzip shipped by default):

    echo -e "import zipfile\nwith zipfile.ZipFile('/tmp/change_password.zip', 'r') as z:\n  z.extractall('/tmp/')" | python3
  4. Become root:

    sudo su
  5. Confirm this is a right node:

    docker ps | grep  kedr_database_server
  6. Install installer patch:

    installer-1.0-py3-none-any.whl
    pip3 install --ignore-installed --no-deps /tmp/installer-1.0-py3-none-any.whl
  7. Install docker_utils patch:

    docker_utils-1.0-py3-none-any.whl
    pip3 install --ignore-installed --no-deps /tmp/docker_utils-1.0-py3-none-any.whl
  8. Restrict changing password to root: 

    which kata-web-admin-change-password | xargs chmod 754
  9. Change password by running:

    kata-web-admin-change-password
  10. Enter new password in the prompt, no confirmations or validation will be given

Selecting the correct node

Script must be executed on a node with kedr_database_server container, by default it is the processing one installed first, node2 in cluster.

In case it is executed on a wrong node, a hint will be given which is a right one.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...