Open seanf opened 6 years ago
Perhaps I should have reported this against fabric8-maven-plugin
, but it looks like it's just invoking gofabric8 start --minishift --console --batch
in this case.
I see that I should have used mvn fabric8:cluster-stop -Dfabric8.cluster.delete=true
instead of having to use minishift delete
, but it just produces a help message and apparently doesn't delete anything:
$ mvn fabric8:cluster-stop -Dfabric8.cluster.delete=true
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 8
[INFO] STARTED build of project org.zanata:build-tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build Tools 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that have goals not marked *
[WARNING] * as @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in Build Tools:
[WARNING] io.fabric8:fabric8-maven-plugin:3.5.34
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.34:cluster-stop (default-cli) @ build-tools ---
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 delete --batch
[INFO] F8:gofabric8 You must specify the type of resource to get. Valid resource types include:
[INFO] F8:gofabric8 * cluster.
[INFO] F8:gofabric8 * environ.
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Usage:
[INFO] F8:gofabric8 gofabric8 delete [command]
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Available Commands:
[INFO] F8:gofabric8 cluster Delete a local cluster
[INFO] F8:gofabric8 env Delete environment from fabric8-environments configmap
[INFO] F8:gofabric8 tenant Deletes all your tenant resources
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Global Flags:
[INFO] F8:gofabric8 --as string Username to impersonate for the operation
[INFO] F8:gofabric8 -b, --batch export FABRIC8_BATCH=true Run in batch mode to avoid prompts. Can also be enabled via export FABRIC8_BATCH=true
[INFO] F8:gofabric8 --certificate-authority string Path to a cert. file for the certificate authority
[INFO] F8:gofabric8 --client-certificate string Path to a client certificate file for TLS
[INFO] F8:gofabric8 --client-key string Path to a client key file for TLS
[INFO] F8:gofabric8 --cluster string The name of the kubeconfig cluster to use
[INFO] F8:gofabric8 --context string The name of the kubeconfig context to use
[INFO] F8:gofabric8 --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
[INFO] F8:gofabric8 --kubeconfig string Path to the kubeconfig file to use for CLI requests.
[INFO] F8:gofabric8 --match-server-version Require server version to match client version
[INFO] F8:gofabric8 -n, --namespace string If present, the namespace scope for this CLI request
[INFO] F8:gofabric8 --password string Password for basic authentication to the API server
[INFO] F8:gofabric8 --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
[INFO] F8:gofabric8 -s, --server string The address and port of the Kubernetes API server
[INFO] F8:gofabric8 --token string Bearer token for authentication to the API server
[INFO] F8:gofabric8 --user string The name of the kubeconfig user to use
[INFO] F8:gofabric8 --username string Username for basic authentication to the API server
[INFO] F8:gofabric8 --version-console string fabric8 version (default "latest")
[INFO] F8:gofabric8 --work-project string The work project (default "autodetect")
[INFO] F8:gofabric8 -y, --yes Assume yes
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Use "gofabric8 delete [command] --help" for more information about a command.
[INFO] SUCCESS build of project org.zanata:build-tools
[INFO] Builder state: blocked=0 finished=1 ready-or-running=0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.960 s (Wall Clock)
[INFO] Finished at: 2018-02-09T16:45:37+10:00
[INFO] Final Memory: 27M/422M
[INFO] ------------------------------------------------------------------------
This is what happens when I try to restart the existing cluster (unless I use minishift delete
and oc config delete-cluster
):
$ mvn fabric8:cluster-start -Dfabric8.cluster.kind=openshift
[INFO] BuildTimeEventSpy is registered.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the SmartBuilder implementation with a thread count of 8
[INFO] STARTED build of project org.zanata:build-tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Build Tools 4.5.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but project *
[WARNING] * contains the following plugin(s) that have goals not marked *
[WARNING] * as @threadSafe to support parallel building. *
[WARNING] * While this /may/ work fine, please look for plugin updates *
[WARNING] * and/or request plugins be made thread-safe. *
[WARNING] * If reporting an issue, report it against the plugin in *
[WARNING] * question, not against maven-core *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked @threadSafe in Build Tools:
[WARNING] io.fabric8:fabric8-maven-plugin:3.5.34
[WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
[WARNING] *****************************************************************
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.34:cluster-start (default-cli) @ build-tools ---
[INFO] F8: Found /home/sflaniga/.fabric8/bin/gofabric8
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 version --batch
[INFO] F8:gofabric8 foo' v1.5.0+031cbe4'
[INFO] F8:gofabric8 gofabric8, version 0.4.176 (branch: 'master', revision: '22de39d49')
[INFO] F8:gofabric8 build date: '20171110-16:40:44'
[INFO] F8:gofabric8 go version: '1.8.1'
[INFO] F8:gofabric8 oc version: 'v1.5.0+031cbe4'
[INFO] F8:gofabric8
[INFO] F8:gofabric8
[INFO] F8:gofabric8
[INFO] F8:gofabric8
[INFO] F8:gofabric8 Minishift: 'v1.12.0+daa0943'
[INFO] F8: Running /home/sflaniga/.fabric8/bin/gofabric8 start --minishift --console --batch
[INFO] F8:gofabric8 minishift already running
[INFO] F8:gofabric8 minishift is already running, you can switch to the context
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
[INFO] F8:gofabric8 Cannot connect to api server, retrying...
I'm trying to use fabric8 for the first time, and the first time user experience produces a lot of warnings and error messages, especially when re-running cluster-start.
This message gets repeated a lot in messages about securitycontextconstraints andclusterpolicybindings:
User "developer" cannot create securitycontextconstraints at the cluster scope
There are also a lot of error messages about 'keycloak' services not being found.
Also, each time
cluster-start
fails I have to clean up manually before I can try again (cluster-stop
doesn't work).I'm running Fedora 26, Maven 3.5.2.
At this point the log messages stop. It's unclear if the cluster has started successfully, but
oc get pods
shows a Running podfabric8-1-vkk5q
.18 hours later (probably when my laptop was woken up), it decides to shut down with a lot of errors:
These are the sort of things I had to do to clean up between attempts: