GithubHelp home page GithubHelp logo

Comments (4)

markusewalker avatar markusewalker commented on September 24, 2024 1

Validated this issue using the Rancher CLI v2.8.4-rc1. See details below:

ENVIRONMENT DETAILS

  • Rancher install: Docker
  • Rancher version: v2.8-head a49ebe3.
  • Rancher CLI version: v2.8.4-rc1

TEST RESULT

# Scenario Test Case Result
1 cli2.json created after logging in with CMD Run rancher login command, validate login is successful and cli2.json file exists
2 cli2.json created after logging in with Powershell Run rancher login command, validate login is successful and cli2.json file exists

REPRO STEPS

  1. Downloaded Rancher CLI.
  2. In CMD, ran the following command:
>rancher.exe login --token <removed> <Rancher server URL>
...
time="2024-04-05T19:48:16Z" level=info msg="Saving config to C:\\Users\\Administrator\\.rancher\\cli2.json"
C:\Users\Administrator\Downloads\rancher-windows-amd64-v2.8.4-rc1\rancher-v2.8.4-rc1>dir C:\Users\Administrator\.rancher\
 Volume in drive C has no label.
 Volume Serial Number is A6F0-A5C4

 Directory of C:\Users\Administrator\.rancher

04/05/2024  07:48 PM    <DIR>          .
04/05/2024  07:48 PM    <DIR>          ..
04/05/2024  07:48 PM             1,059 cli2.json
               1 File(s)          1,059 bytes
               2 Dir(s)  89,619,906,560 bytes free

Scenario 2

  1. Repeated scenario 1, but used Powershell instead of CMD - same successful results.

from rancher.

markusewalker avatar markusewalker commented on September 24, 2024

QA TEST PLAN

# Scenario Test Case
1 cli2.json created after logging in with CMD Run rancher login command, validate login is successful and cli2.json file exists
2 cli2.json created after logging in with Powershell Run rancher login command, validate login is successful and cli2.json file exists

from rancher.

markusewalker avatar markusewalker commented on September 24, 2024

Reproduced this issue using the Rancher CLI v2.8.0. See details below:

ENVIRONMENT DETAILS

  • Rancher install: Docker
  • Rancher version: v2.8-head 6732909.
  • Rancher CLI version: v2.8.0

TEST RESULT

# Scenario Test Case Result
1 cli2.json created after logging in with CMD Run rancher login command, validate login is successful and cli2.json file exists

REPRO STEPS

  1. Downloaded Rancher CLI on Windows client machine.
  2. In CMD, ran the following command:
>rancher.exe login --token <removed> <Rancher server URL>
...
Do you want to continue connecting (yes/no)? yes
NUMBER    CLUSTER NAME     PROJECT ID        PROJECT NAME   PROJECT DESCRIPTION
1         auto-ec2-mgxkr   <removed>   System         System project created for the cluster
2         auto-ec2-mgxkr  <removed>  Default        Default project created for the cluster
3         mew-test         <removed>  Default        Default project created for the cluster
4         mew-test         <removed> System         System project created for the cluster
5         local            <removed>    Default        Default project created for the cluster
6         local            <removed>    System         System project created for the cluster
Select a Project:5
time="2024-03-28T18:46:30Z" level=info msg="Saving config to \\.rancher\\cli2.json"
time="2024-03-28T18:46:30Z" level=fatal msg="open \\.rancher\\cli2.json: The system cannot find the path specified."

Now that this is reproduced, I will await for an RC so that I can properly validate this.

from rancher.

HarrisonWAffel avatar HarrisonWAffel commented on September 24, 2024

RC v2.8.4-rc1 has been created so this issue is now ready to be tested

from rancher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.