1
0
-1

Hi experts!

I want to set up ONAP of "beijing" using k8s

https://docs.onap.org/en/beijing/submodules/oom.git/docs/oom_setup_kubernetes_rancher.html#onap-on-kubernetes-with-rancher

But when I add the k8s host to rancher, I got stuck.

Then I checked the logs of k8s and rancher, I found some error.

Teh next is some logs

rancher-agent in k8s

root@k8s:~# docker logs -f rancher-agent
Found container ID: 818b316071ce761366add1f93fc20104450e5d1b44d0195dbd0505f27303181a
Checking root: /host/run/runc
Checking file: 818b316071ce761366add1f93fc20104450e5d1b44d0195dbd0505f27303181a
Found state.json: 818b316071ce761366add1f93fc20104450e5d1b44d0195dbd0505f27303181a
time="2018-06-11T07:31:55Z" level=info msg="Execing [/usr/bin/nsenter --mount=/proc/7309/ns/mnt -F -- /var/lib/docker/aufs/mnt/15dbfb3b609557b21099b8dde178b993fb9d4c8e862b598fe116a11e5154d28b/usr/bin/share-mnt --stage2 /var/lib/rancher/volumes /var/lib/kubelet -- norun]"
INFO: Starting agent for BAAD7E8C9C9A6D5C37F0
INFO: Access Key: BAAD7E8C9C9A6D5C37F0
INFO: Config URL: http://10.100.47.144:8080/v1
INFO: Storage URL: http://10.100.47.144:8080/v1
INFO: API URL: http://10.100.47.144:8080/v1
INFO: IP: 10.100.47.145
INFO: Port:
INFO: Required Image: rancher/agent:v1.2.9
INFO: Current Image: rancher/agent:v1.2.9
INFO: Using image rancher/agent:v1.2.9
Updating certificates in /etc/ssl/certs...
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
INFO: Downloading agent http://10.100.47.144:8080/v1/configcontent/configscripts
INFO: Updating configscripts
INFO: Downloading http://10.100.47.144:8080/v1//configcontent//configscripts current=
INFO: Running /var/lib/cattle/download/configscripts/configscripts-1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319/apply.sh
INFO: Sending configscripts applied 1-f0f3fb2e1110b5ada7c441705981f93a480313a324294321cff467f0c3e12319
INFO: Updating pyagent
INFO: Downloading http://10.100.47.144:8080/v1//configcontent//pyagent current=
INFO: Running /var/lib/cattle/download/pyagent/pyagent-1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67/apply.sh
INFO: Updating host-api
INFO: Downloading http://10.100.47.144:8080/v1//configcontent//host-api current=
INFO: Running /var/lib/cattle/download/host-api/1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf/apply.sh
INFO: Sending host-api applied 1-9608ead804f8cebbfe95b9f114701d8a5ac4244d603d196068043c902b1a0bdf
INFO: Updating python-agent
INFO: Downloading http://10.100.47.144:8080/v1//configcontent//python-agent current=
INFO: Running /var/lib/cattle/download/python-agent/1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a/apply.sh
INFO: Sending python-agent applied 1-8ecf2cf4a616b933d905134749006b1321ad3e6d7eb25695192efe6f1e16787a
INFO: Sending pyagent applied 1-9e3dcab12585149a65d818082279708965cd826df1937a55b24f48428f8f0c0644fc1033b5be15c88dcf9540b1c04c67
INFO: Starting agent /var/lib/cattle/pyagent/apply.sh
INFO: Executing /var/lib/cattle/pyagent/agent
INFO: Updating host-config
INFO: Downloading http://10.100.47.144:8080/v1//configcontent//host-config current=
INFO: Running /var/lib/cattle/download/host-config/host-config-1-a8485261d72f299b119efedc102828f6d39f90f8b941d34f4ca9d267cfc343b0/apply.sh
INFO: HOME -> ./
INFO: HOME -> ./etc/
INFO: HOME -> ./etc/cattle/
INFO: HOME -> ./etc/cattle/api.crt
INFO: Sending host-config applied 1-a8485261d72f299b119efedc102828f6d39f90f8b941d34f4ca9d267cfc343b0
time="2018-06-11T07:32:11Z" level=info msg="Launching agent"
time="2018-06-11T07:32:11Z" level=info msg="Detecting cloud provider"
time="2018-06-11T07:32:11Z" level=info msg="Listening for events on http://10.100.47.144:8080/v1"
time="2018-06-11T07:32:11Z" level=info msg="launching hostapi"
time="2018-06-11T07:32:11Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:32:11Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:32:11Z" level=info msg="Starting event router."
time="2018-06-11T07:32:11Z" level=info msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid=a81aafee-015d-49a1-4a80-ba2c7ede2187
time="2018-06-11T07:32:11Z" level=info msg="Serialize compute requests: false, driver: aufs"
time="2018-06-11T07:32:11Z" level=info msg="Initializing event router" workerCount=250
time="2018-06-11T07:32:11Z" level=info msg="Connection established"
time="2018-06-11T07:32:11Z" level=info msg="Starting websocket pings"
time="2018-06-11T07:32:11Z" level=error msg="retry check cloud provider" count=1 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: 404 Not Found\n\nThe resource could not be found.\n\n "
time="2018-06-11T07:32:12Z" level=info msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid=a81aafee-015d-49a1-4a80-ba2c7ede2187
time="2018-06-11T07:32:13Z" level=info msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid=a81aafee-015d-49a1-4a80-ba2c7ede2187
time="2018-06-11T07:32:13Z" level=info msg="Generating host key"
time="2018-06-11T07:32:14Z" level=info msg="Done generating host key"
time="2018-06-11T07:32:14Z" level=info msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid=a81aafee-015d-49a1-4a80-ba2c7ede2187
time="2018-06-11T07:32:15Z" level=info msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid=a81aafee-015d-49a1-4a80-ba2c7ede2187
time="2018-06-11T07:32:15Z" level=info msg="Received event: Name: config.update, Event Id: ab883f86-d1b3-46ff-ac2d-7086ad35c1c4, Resource Id: 1a2"
time="2018-06-11T07:32:16Z" level=info msg="Connecting to proxy." url="ws://10.100.47.144:8080/v1/connectbackend?token=eyJhbGciOiJSUzI1NiJ9.eyJyZXBvcnRlZFV1aWQiOiJhODFhYWZlZS0wMTVkLTQ5YTEtNGE4MC1iYTJjN2VkZTIxODciLCJzdWIiOiJjYXR0bGUiLCJraWQiOiJkZWZhdWx0IiwiaXNzIjoiaHR0cDpcL1wvY2F0dGxlLmlvIiwiZXhwIjoxNTI4NzAyNjM1LCJpYXQiOjE1Mjg3MDIzMzV9.Wni6G0R64OciFfthkFO8OPcKriBIK0IEBnvTn5P795DwdZ1x9M7Mw35AIPNT3rcI86KHGS6jYom2SelN5j59Gb_P4qTKWZ1wbrwzBdcik7XKc-7c7_Sez9F__-2AcLcKsTAas47Fs8dkM0VdVuIiY44PwRsyjXvuQ679OuxeNUPLQsnu8dX26bkujCsjaoXGbfbdAiVgIg6Z4vmPu8ADhLab5xGqBzYnqciJ_--XJkC7sviL0lBOrVyzDOfKt_eKw2CPQ7OwtzM0EXKMABWbGl-XXT7DbKqDnwDHRV6R_6dTFjLlI3u9XAZiry6sqhmykbxScGxPxXie_J1x0nmgNA"
time="2018-06-11T07:32:20Z" level=info msg="Received event: Name: compute.instance.inspect, Event Id: 7c07afd1-d4be-4328-be45-37ea4d0b2712, Resource Id: "
time="2018-06-11T07:32:20Z" level=info msg="rancher id []: Container with docker id [e525c6afe1f15546e196fcdb1abd974a6ce35df73b5b082e935f35e199adfd2e] has been inspected"
time="2018-06-11T07:32:20Z" level=info msg="Reply: 7c07afd1-d4be-4328-be45-37ea4d0b2712, compute.instance.inspect, :instanceInspect"
time="2018-06-11T07:32:41Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:32:41Z" level=error msg="retry check cloud provider" count=2 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: 404 Not Found\n\nThe resource could not be found.\n\n "
time="2018-06-11T07:33:06Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: 384b2c3f-1cb3-4800-961f-021b0b9dccbd, Resource Id: 1vspm9"
time="2018-06-11T07:33:06Z" level=info msg="Reply: 384b2c3f-1cb3-4800-961f-021b0b9dccbd, storage.volume.activate, 1vspm9:volumeStoragePoolMap"
time="2018-06-11T07:33:08Z" level=info msg="Received event: Name: compute.instance.activate, Event Id: a6579252-4da7-4ac7-b245-7161359c1d00, Resource Id: 1ihm2"
time="2018-06-11T07:33:08Z" level=info msg="Reply: a6579252-4da7-4ac7-b245-7161359c1d00, compute.instance.activate, 1ihm2:instanceHostMap"
time="2018-06-11T07:33:11Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:33:12Z" level=error msg="retry check cloud provider" count=3 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: 404 Not Found\n\nThe resource could not be found.\n\n "
time="2018-06-11T07:33:42Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:33:42Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: cc35c288-8d6b-4d2b-ba89-9390a8c502b8, Resource Id: 1vspm11"
time="2018-06-11T07:33:42Z" level=info msg="Reply: cc35c288-8d6b-4d2b-ba89-9390a8c502b8, storage.volume.activate, 1vspm11:volumeStoragePoolMap"
time="2018-06-11T07:33:42Z" level=error msg="retry check cloud provider" count=4 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: 404 Not Found\n\nThe resource could not be found.\n\n "
time="2018-06-11T07:33:43Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: b3a0662d-b1e3-4893-9fdd-504aedafff62, Resource Id: 1vspm12"
time="2018-06-11T07:33:43Z" level=info msg="Reply: b3a0662d-b1e3-4893-9fdd-504aedafff62, storage.volume.activate, 1vspm12:volumeStoragePoolMap"
time="2018-06-11T07:33:45Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: 89f621ee-0225-45d0-8fa7-953238108743, Resource Id: 1vspm13"
time="2018-06-11T07:33:45Z" level=info msg="Reply: 89f621ee-0225-45d0-8fa7-953238108743, storage.volume.activate, 1vspm13:volumeStoragePoolMap"
time="2018-06-11T07:33:54Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: 17740a51-872a-498f-9bf5-200d799eba88, Resource Id: 1vspm15"
time="2018-06-11T07:33:54Z" level=info msg="Reply: 17740a51-872a-498f-9bf5-200d799eba88, storage.volume.activate, 1vspm15:volumeStoragePoolMap"
time="2018-06-11T07:33:56Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: e686ae62-2eef-4a54-820b-4b6cd9963c55, Resource Id: 1vspm14"
time="2018-06-11T07:33:56Z" level=info msg="Reply: e686ae62-2eef-4a54-820b-4b6cd9963c55, storage.volume.activate, 1vspm14:volumeStoragePoolMap"
time="2018-06-11T07:34:01Z" level=info msg="Received event: Name: storage.volume.activate, Event Id: c2eeef27-cec6-4618-899f-7a073bf04a4a, Resource Id: 1vspm16"
time="2018-06-11T07:34:01Z" level=info msg="Reply: c2eeef27-cec6-4618-899f-7a073bf04a4a, storage.volume.activate, 1vspm16:volumeStoragePoolMap"
time="2018-06-11T07:34:12Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:34:12Z" level=error msg="retry check cloud provider" count=5 error="EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: 404 Not Found\n\nThe resource could not be found.\n\n "
time="2018-06-11T07:34:41Z" level=error msg="retry check cloud provider" count=1 error="Get http://100.100.100.200/latest/meta-data/zone-id: dial tcp 100.100.100.200:80: i/o timeout"
time="2018-06-11T07:34:42Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:34:42Z" level=error msg="checking aws cloud provider error after 6 attempts, last error: EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: EC2MetadataError: failed to make EC2Metadata request\ncaused by: 404 Not Found\n\nThe resource could not be found.\n\n "
time="2018-06-11T07:35:11Z" level=warning msg="stat /var/lib/rancher/state/info.json: no such file or directory"
time="2018-06-11T07:37:41Z" level=error msg="checking aliyun cloud provider error after 2 attempts, last error: Get http://100.100.100.200/latest/meta-data/zone-id: dial tcp 100.100.100.200:80: i/o timeout"



rancher_server.log


Did any know this? Any help is appreciate!

Thanks

ChangJun

    CommentAdd your comment...