Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix start docker error when init harbor #2157

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

chilianyi
Copy link
Contributor

@chilianyi chilianyi commented Mar 6, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes ##2156

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:

# /opt/kubekey/bin/kk init registry -f config-sample.yaml


 _   __      _          _   __
| | / /     | |        | | / /
| |/ / _   _| |__   ___| |/ /  ___ _   _
|    \| | | | '_ \ / _ \    \ / _ \ | | |
| |\  \ |_| | |_) |  __/ |\  \  __/ |_| |
\_| \_/\__,_|_.__/ \___\_| \_/\___|\__, |
                                    __/ |
                                   |___/

21:09:27 CST [GreetingsModule] Greetings
21:09:29 CST message: [test-3]
Greetings, KubeKey!
21:09:29 CST success: [test-3]
21:09:29 CST [RegistryPackageModule] Download registry package
21:09:29 CST message: [localhost]
downloading amd64 harbor v2.5.3  ...
21:09:37 CST message: [localhost]
downloading amd64 docker 24.0.9  ...
21:09:37 CST message: [localhost]
downloading amd64 compose v2.2.2  ...
21:09:38 CST success: [LocalHost]
21:09:38 CST [ConfigureOSModule] Get OS release
21:09:38 CST success: [test-3]
21:09:38 CST [ConfigureOSModule] Prepare to init OS
21:09:39 CST success: [test-3]
21:09:39 CST [ConfigureOSModule] Generate init os script
21:09:39 CST success: [test-3]
21:09:39 CST [ConfigureOSModule] Exec init os script
21:09:42 CST stdout: [test-3]
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_forward = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_local_reserved_ports = 30000-32767
net.core.netdev_max_backlog = 65535
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.somaxconn = 32768
net.ipv4.tcp_max_syn_backlog = 1048576
net.ipv4.neigh.default.gc_thresh1 = 512
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_max_tw_buckets = 1048576
net.ipv4.tcp_max_orphans = 65535
net.ipv4.udp_rmem_min = 131072
net.ipv4.udp_wmem_min = 131072
net.ipv4.conf.all.arp_accept = 1
net.ipv4.conf.default.arp_accept = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.conf.default.arp_ignore = 1
vm.max_map_count = 262144
vm.swappiness = 0
vm.overcommit_memory = 0
fs.inotify.max_user_instances = 524288
fs.inotify.max_user_watches = 524288
fs.pipe-max-size = 4194304
fs.aio-max-nr = 262144
kernel.pid_max = 65535
kernel.watchdog_thresh = 5
kernel.hung_task_timeout_secs = 5
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0
net.ipv6.conf.all.forwarding = 1
21:09:42 CST success: [test-3]
21:09:42 CST [ConfigureOSModule] configure the ntp server for each node
21:09:42 CST skipped: [test-3]
21:09:42 CST [InitRegistryModule] Fetch registry certs
21:09:42 CST success: [test-3]
21:09:42 CST [InitRegistryModule] Generate registry Certs
[certs] Using existing ca certificate authority
[certs] Using existing dockerhub.kubekey.local certificate and key on disk
21:09:42 CST success: [LocalHost]
21:09:42 CST [InitRegistryModule] Synchronize certs file
21:09:43 CST success: [test-3]
21:09:43 CST [InitRegistryModule] Synchronize certs file to all nodes
21:09:44 CST success: [test-3]
21:09:44 CST [InstallRegistryModule] Sync docker binaries
21:09:50 CST success: [test-3]
21:09:50 CST [InstallRegistryModule] Generate containerd service
21:09:50 CST success: [test-3]
21:09:50 CST [InstallRegistryModule] Generate docker service
21:09:50 CST success: [test-3]
21:09:50 CST [InstallRegistryModule] Generate docker config
21:09:51 CST success: [test-3]
21:09:51 CST [InstallRegistryModule] Enable containerd
21:09:53 CST success: [test-3]
21:09:53 CST [InstallRegistryModule] Enable docker
21:09:55 CST success: [test-3]
21:09:55 CST [InstallRegistryModule] Install docker compose
21:09:56 CST success: [test-3]
21:09:56 CST [InstallRegistryModule] Sync harbor package
21:10:29 CST success: [test-3]
21:10:29 CST [InstallRegistryModule] Generate harbor service
21:10:30 CST success: [test-3]
21:10:30 CST [InstallRegistryModule] Generate harbor config
21:10:30 CST success: [test-3]
21:10:30 CST [InstallRegistryModule] start harbor

Local image registry created successfully. Address: dockerhub.kubekey.local

21:12:17 CST success: [test-3]
21:12:17 CST [ChownWorkerModule] Chown ./kubekey dir
21:12:17 CST success: [LocalHost]
21:12:17 CST Pipeline[InitRegistryPipeline] execute successfully

@ks-ci-bot ks-ci-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 6, 2024
@chilianyi chilianyi requested a review from pixiake March 6, 2024 13:13
@pixiake
Copy link
Collaborator

pixiake commented Mar 14, 2024

/lgtm
/approve

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2024
@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: a3ec8c283bc9aea513245bf7599c4a0232d714ca

@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chilianyi, pixiake

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ks-ci-bot ks-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 14, 2024
@ks-ci-bot ks-ci-bot merged commit 1b892c3 into kubesphere:master Mar 14, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants