GithubHelp home page GithubHelp logo

Comments (13)

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024 1

New issue mentioned above (#69) was closed by @shashankram as invalid. Let's add any clarification needed to the manual demo instructions.

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

Hi Dave, the manual demo in https://github.com/openservicemesh/osm/blob/136d902c61b6c0fc2d4eb98215fe3aff0d0e73f7/docs/content/docs/install/manual_demo/_index.md#create-Pods-Services-ServiceAccounts is old - let's make sure we are using the one in https://docs.openservicemesh.io/docs/install/manual_demo/

Can you please paste in the exact command and the error that gets displayed, into this issue? Thanks!

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

My guess is the problem happens at https://docs.openservicemesh.io/docs/install/manual_demo/#create-pods-services-serviceaccounts and it might be related to running on Windows - can you clarify the environment you're testing on?

kubectl apply -f - <<EOF may or may not work if you're not on a Linux machine - perhaps there is a Windows equiv?

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

@davedoering can you check to see if this problem occurs if you use wsl2? We should determine if this is a "Windows cli versus Linux shell" issue.

from osm-docs.

davedoering avatar davedoering commented on July 16, 2024

@bridgetkromhout Phill and I ran through the Docker and K8s install again with no errors on that part. To troubleshoot I then ran in Powershell on Windows 10 Enterprise 21H1 Build 19043.985:

  • wsl -l -v and it reports WSL version 2 for Docker, Ubuntu.
  • osm version and it reports:
    Version: v0.8.4; Commit: 3d923b3f2d72006f6cdaad056938c492c364196d; Date: 2021-05-18-19:14
  • kubectl create namespace bookstore and it reports "namespace/bookstore created"
  • osm namespace add bookstore and it reports "Namespace [bookstore] successfully added to mesh [osm]"

However, when I enter the next Demo commands:
kubectl apply -f - <<EOF

apiVersion: v1
kind: ServiceAccount
metadata:
name: bookstore
namespace: bookstore

it reports numerous errors (full list in the attached screenshot):

  • Missing file specification after redirection operator. At line:1 char:20
  • The '<' operator is reserved for future use. At line:1 char:21
  • Missing expression after unary operator '-'. At line:4 char:1 + apiVersion: v1
  • Unexpected token 'apiVersion:' in expression or statement. At line:18 char:4
  • Not all parse errors were reported. Correct the reported errors and try again.
    • CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : MissingFileSpecification

OSM Kubectl Error

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

Ah, yes, these aren't command lines you can use (verbatim) with powershell; that is linux shell redirection. You can read more on https://stackoverflow.com/questions/60398794/powershell-error-missing-file-specification-after-redirection-operator - basically either we need to write a powershell-compatible option, or we need to tell people to run these in bash. Does it work for you if you use bash?

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

Oh and if you wanted to create a file with a given set of yaml in it, and say kubectl apply -f newfilename.yaml, it would have the same effect. It's written in the docs with the redirect in order to make it easy to copy and paste it in one command.

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

Related: #66

from osm-docs.

davedoering avatar davedoering commented on July 16, 2024

@phillipgibson I note that the Demo step with the command:

cp .env.example .env
./scripts/port-forward-all.sh

Fails in Bash with the error "cp: cannot stat '.env.example': No such file or directory"

from osm-docs.

phillipgibson avatar phillipgibson commented on July 16, 2024

@davedoering I believe you may not have the OSM repo cloned to your computer. Let's make sure you have a local copy of the repo using the git clone https://github.com/openservicemesh/osm.git command in your WSL.

from osm-docs.

bridgetkromhout avatar bridgetkromhout commented on July 16, 2024

If you look at https://docs.openservicemesh.io/docs/install/manual_demo/#view-the-application-uis you will see this language:

In a new terminal session, run the following commands to enable port forwarding into the Kubernetes cluster from the root of the project directory.

This means you need to be in the root of the project directory to copy https://github.com/openservicemesh/osm/blob/main/.env.example.

from osm-docs.

davedoering avatar davedoering commented on July 16, 2024

Opened new issue to install missing resources as part of the OSM install.

from osm-docs.

davedoering avatar davedoering commented on July 16, 2024

Resolved this issue:

  1. OSM binary needs to be installed into WLS even though the doc has instructions for installing a WIndows version.
  2. Run subsequent demo install steps using Bash and not Powershell.
  3. Corrected doc to reflect these requirements.

from osm-docs.

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.