我是openshift的新手。我正在尝试通过一些基本的安装选项。首先,我能够下载和运行流浪汉形象。当我这样做时,我能够登录并看到几个项目和容器正在运行。接下来我尝试了二进制安装。所以,我下载openshift原始服务器V1.3.1 untared它就跑了以下内容:用户“系统”无法列出群集中的所有服务
须藤openshift开始
似乎openshift开始,但我也注意到在输出几个可疑线路如下:
W1103 09:06:47.360850 4647 start_master.go:272] Warning: assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container
logs in the console, master start will continue.
W1103 09:06:47.360906 4647 start_master.go:272] Warning: assetConfig.metricsPublicURL: Invalid value: "": required to view cluster metrics in t
he console, master start will continue.
E1103 09:06:47.373823 4647 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.ClusterPolicy: client:
etcd cluster is unavailable or misconfigured
E1103 09:06:47.374026 4647 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.ClusterPolicyBinding: c
lient: etcd cluster is unavailable or misconfigured
E1103 09:06:47.374102 4647 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.PolicyBinding: client:
etcd cluster is unavailable or misconfigured
E1103 09:06:47.374254 4647 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.Group: client: etcd clu
ster is unavailable or misconfigured
E1103 09:06:47.374420 4647 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.Policy: client: etcd cl
uster is unavailable or misconfigured
E1103 09:06:47.376485 4647 reflector.go:203] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/limitranger/admission.go
:154: Failed to list *api.LimitRange: Get https://XXX.XXX.XXX.XXX:8443/api/v1/limitranges?resourceVersion=0: dial tcp XXX.XXX.XXX.XXX:8443: getsockopt:
connection refused
一旦服务器启动,我可以登录,但系统用户似乎没有很多的权限。例如,系统用户无法看到集群中的任何项目或服务。运行一些OC命令似乎表明系统用户没有适当的权限如下:
#./oc login https://localhost:8443 Authentication required for https://localhost:8443 (openshift) Username: system Password: Login
successful.
You don't have any projects. You can try to create a new project, by
running
oc new-project <projectname>
# ./oc new-project default
Error from server: project "default" already exists
# ./oc get services --all-namespaces
User "system" cannot list all services in the cluster
看来我必须失去了一些关于如何从二进制启动openshift了非常基本的分配。我无法在文档中找到任何与此问题相关的内容。
所以使用我从压缩包我得到以下安装的版本: –
因此,使用该版本我从tarball安装时遇到错误,当我尝试做你的建议。首先“oc登录-u系统:admin”提示输入密码。我需要使用“oc登录-u系统-p管理员”进行身份验证。返回的项目列表是空的。如果我执行“oc聚簇”命令,如果我以“root”或其他用户身份登录,我会得到不同的响应。运行“oc login -u system:admin”并返回适当的项目列表,但Web UI在登录后仍然没有返回任何项目。 –
BTW,安装我做了以下内容: 'wget的 焦油xvzf openshift原始服务器-V1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-Linux的64bit.tar.gz' 'CD <通过压缩包创建openshift DIR>' '。/ openshift start' –