diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index c204d363bd1f..1b15c6299637 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,7 +1,7 @@ diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index 1ef2114aa5c5..754e578b7d49 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -1,2 +1,2 @@ The LXD team uses GitHub for issue and feature tracking, not for user support. -For information on how to get support, see [Support](https://linuxcontainers.org/lxd/docs/master/support/). +For information on how to get support, see [Support](https://documentation.ubuntu.com/lxd/en/stable-4.0/support/). diff --git a/.github/labeler.yml b/.github/labeler.yml index f219e55c5361..8d43efcc0001 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,7 +1,19 @@ API: -- doc/api-extensions.md -- doc/rest-api.yaml -- shared/api/**/* +- changed-files: + - any-glob-to-any-file: + - doc/api-extensions.md + - doc/rest-api.yaml + - shared/api/**/* Documentation: -- doc/**/* -- .sphinx/**/* +- changed-files: + - any-glob-to-any-file: + - doc/**/* + +"5.21 LTS": +- base-branch: 'stable-5.21' + +"5.0 LTS": +- base-branch: 'stable-5.0' + +"4.0 LTS": +- base-branch: 'stable-4.0' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index b5bb06214fb9..000000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: "Pull request labeler" -on: -- pull_request_target - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v3 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml deleted file mode 100644 index 17fef4346e4a..000000000000 --- a/.github/workflows/sphinx.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Build Sphinx documentation -on: - - push - - pull_request -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Build docs - run: make doc - - - name: Print warnings - run: if [ -s .sphinx/warnings.txt ]; then cat .sphinx/warnings.txt; exit 1; fi - - - name: Upload artifacts - if: always() - uses: actions/upload-artifact@v2 - with: - name: documentation - path: doc/html diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 7289fa582b93..000000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: Client build and unit tests -on: - - push - - pull_request -jobs: - test: - strategy: - fail-fast: false - matrix: - go: - - 1.13.x - - 1.16.x - - 1.17.x - os: - - ubuntu-latest - - macos-latest - - windows-latest - runs-on: ${{ matrix.os }} - steps: - - name: Install Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go }} - - - name: Checkout code - uses: actions/checkout@v2 - - - name: Test client package - env: - CGO_ENABLED: 0 - run: go test -v ./client/... - - - name: Test lxc package - env: - CGO_ENABLED: 0 - run: go test -v ./lxc/... - - - name: Test shared package - env: - CGO_ENABLED: 0 - run: go test -v ./shared/... - - - name: Create build directory - run: | - mkdir bin - - - name: Build static lxc - env: - CGO_ENABLED: 0 - run: | - go build -o bin ./lxc - - - name: Build static lxd-p2c - if: runner.os == 'Linux' - env: - CGO_ENABLED: 0 - run: | - go build -o bin ./lxd-p2c - - - name: Upload artifacts - uses: actions/upload-artifact@v2 - if: matrix.go == '1.17.x' - continue-on-error: true - with: - name: ${{ runner.os }} - path: bin/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000000..74b9e501c265 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,476 @@ +name: Tests +on: + push: + branches: + - main + - stable-* + pull_request: + +env: + CGO_LDFLAGS_ALLOW: "(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" + LXD_REQUIRED_TESTS: "storage_buckets" + LXD_SKIP_TESTS: "clustering_upgrade clustering_upgrade_large" + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + # Make sure bash is always invoked with `-eo pipefail` + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell + shell: bash + +jobs: + code-tests: + env: + CGO_CFLAGS: "-I/home/runner/work/lxd/lxd-test/vendor/raft/include/ -I/home/runner/work/lxd/lxd-test/vendor/dqlite/include/" + CGO_LDFLAGS: "-L/home/runner/work/lxd/lxd-test/vendor/raft/.libs/ -L/home/runner/work/lxd/lxd-test/vendor/dqlite/.libs/" + LD_LIBRARY_PATH: "/home/runner/work/lxd/lxd-test/vendor/raft/.libs/:/home/runner/work/lxd/lxd-test/vendor/dqlite/.libs/" + name: Code + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Go (1.18) + uses: actions/setup-go@v5 + with: + go-version: 1.18.x + + - name: Install dependencies + run: | + set -eux + sudo add-apt-repository ppa:ubuntu-lxc/daily -y --no-update + sudo apt-get update + + sudo apt-get install --no-install-recommends -y \ + build-essential \ + curl \ + gettext \ + git \ + libacl1-dev \ + libcap-dev \ + libdbus-1-dev \ + liblxc-dev \ + lxc-templates \ + libseccomp-dev \ + libselinux-dev \ + libsqlite3-dev \ + libtool \ + libudev-dev \ + libuv1-dev \ + make \ + pkg-config \ + shellcheck + + python3 -m pip install flake8 + + - name: Download go dependencies + run: | + set -eux + go mod download + + - name: Make LXD tarball and unpack it + env: + CUSTOM_VERSION: "test" + run: | + set -eux + make dist + tar -xzf lxd-test.tar.gz -C ~/work/lxd/ + rm lxd-test.tar.gz + + - name: Build LXD dependencies + run: | + set -eux + cd ~/work/lxd/lxd-test + make deps + + - name: Run LXD build + run: | + set -eux + make + + - name: Run static analysis + env: + GITHUB_BEFORE: ${{ github.event.before }} + run: | + set -eux + sudo chmod o+w ./po/* + make static-analysis + + - name: Unit tests (all) + run: | + set -eux + sudo --preserve-env=CGO_CFLAGS,CGO_LDFLAGS,CGO_LDFLAGS_ALLOW,LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH} env "PATH=${PATH}" go test ./... + + system-tests: + env: + LXD_CEPH_CLUSTER: "ceph" + LXD_CEPH_CEPHFS: "cephfs" + LXD_CEPH_CEPHOBJECT_RADOSGW: "http://127.0.0.1" + LXD_CONCURRENT: "1" + LXD_VERBOSE: "1" + LXD_OFFLINE: "1" + LXD_TMPFS: "1" + name: System + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + go: ["1.18.x"] + suite: ["cluster", "standalone"] + backend: ["dir", "btrfs", "lvm", "zfs", "ceph", "random"] + include: + - go: "1.16.x" + suite: cluster + backend: dir + - go: "1.16.x" + suite: standalone + backend: dir + + steps: + - name: Performance tuning + run: | + set -eux + # optimize ext4 FSes for performance, not reliability + for fs in $(findmnt --noheading --type ext4 --list --uniq | awk '{print $1}'); do + # nombcache and data=writeback cannot be changed on remount + sudo mount -o remount,noatime,barrier=0,commit=6000 "${fs}" || true + done + + # disable dpkg from calling sync() + echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io + + - name: Reclaim some space + run: | + set -eux + + sudo snap remove lxd --purge + # Purge older snap revisions that are disabled/superseded by newer revisions of the same snap + snap list --all | while read -r name _ rev _ _ notes _; do + [[ "${notes}" =~ disabled$ ]] && snap remove "${name}" --revision "${rev}" --purge + done || true + + # This was inspired from https://github.com/easimon/maximize-build-space + df -h / + # dotnet + sudo rm -rf /usr/share/dotnet + # android + sudo rm -rf /usr/local/lib/android + # haskell + sudo rm -rf /opt/ghc + df -h / + + - name: Remove docker + run: | + set -eux + sudo apt-get autopurge -y containerd.io moby-containerd docker docker-ce podman uidmap + sudo ip link delete docker0 + sudo nft flush ruleset + + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Go (${{ matrix.go }}) + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + + - name: Install dependencies + run: | + set -eux + sudo add-apt-repository ppa:ubuntu-lxc/daily -y --no-update + sudo add-apt-repository ppa:dqlite/dev -y --no-update + sudo apt-get update + + sudo systemctl mask lxc.service lxc-net.service + + sudo apt-get install --no-install-recommends -y \ + curl \ + git \ + libacl1-dev \ + libcap-dev \ + libdbus-1-dev \ + libdqlite-dev \ + liblxc-dev \ + libseccomp-dev \ + libselinux-dev \ + libsqlite3-dev \ + libtool \ + libudev-dev \ + make \ + pkg-config\ + acl \ + attr \ + bind9-dnsutils \ + btrfs-progs \ + busybox-static \ + dnsmasq-base \ + easy-rsa \ + gettext \ + jq \ + lxc-utils \ + lvm2 \ + nftables \ + quota \ + rsync \ + s3cmd \ + socat \ + sqlite3 \ + squashfs-tools \ + tar \ + tcl \ + thin-provisioning-tools \ + uuid-runtime \ + xfsprogs \ + xz-utils \ + zfsutils-linux + + # reclaim some space + sudo apt-get clean + + mkdir -p "$(go env GOPATH)/bin" + curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/minio --output "$(go env GOPATH)/bin/minio" + chmod +x "$(go env GOPATH)/bin/minio" + + # Also grab the latest minio client to maintain compatibility with the server. + curl -sSfL https://dl.min.io/client/mc/release/linux-amd64/mc --output "$(go env GOPATH)/bin/mc" + chmod +x "$(go env GOPATH)/bin/mc" + + - name: Download go dependencies + run: | + set -eux + go mod download + + - name: Install xgettext-go + run: | + set -eux + # XXX: during the LXD build step, `make i18n` cannot install + # xgettext-go due to being in LXD_OFFLINE mode. Furthermore, the + # Makefile uses `go get` which is no longer supported outside of + # a module with Go 1.18 + cd / + go install -v -x github.com/snapcore/snapd/i18n/xgettext-go@2.57.1 + + - name: Run LXD build + run: | + set -eux + make + + - name: Setup MicroCeph + if: ${{ matrix.backend == 'ceph' }} + run: | + set -eux + + cleanup() { + set +e + # dmesg may contain oops, IO errors, crashes, etc + echo "::group::dmesg logs" + journalctl --quiet --no-hostname --no-pager --boot=0 --lines=100 --dmesg + echo "::endgroup::" + exit 1 + } + trap cleanup ERR HUP INT TERM + + # If the rootfs and the ephemeral part are on the same physical disk, giving the whole + # disk to microceph would wipe our rootfs. Since it is pretty rare for GitHub Action + # runners to have a single disk, we immediately bail rather than trying to gracefully + # handle it. Once snapd releases with https://github.com/snapcore/snapd/pull/13150, + # we will be able to stop worrying about that special case. + if [ "$(stat -c '%d' /)" = "$(stat -c '%d' /mnt)" ]; then + echo "FAIL: rootfs and ephemeral part on the same disk, aborting" + exit 1 + fi + + # Free-up the ephemeral disk to use it as ceph OSD. + # https://github.com/canonical/microceph/issues/288 and https://github.com/canonical/microceph/issues/289 + sudo swapoff /mnt/swapfile + ephemeral_disk="$(findmnt --noheadings --output SOURCE --target /mnt | sed 's/[0-9]\+$//')" + sudo umount /mnt + + sudo snap install microceph --edge + sudo snap connect microceph:mount-observe + sudo apt-get install --no-install-recommends -y ceph-common + sudo microceph cluster bootstrap + sudo microceph.ceph config set global osd_pool_default_size 1 + sudo microceph.ceph config set global mon_allow_pool_delete true + sudo microceph.ceph config set global osd_memory_target 939524096 + sudo microceph.ceph osd crush rule rm replicated_rule + sudo microceph.ceph osd crush rule create-replicated replicated default osd + for flag in nosnaptrim noscrub nobackfill norebalance norecover noscrub nodeep-scrub; do + sudo microceph.ceph osd set $flag + done + sudo microceph disk add --wipe "${ephemeral_disk}" + sudo rm -rf /etc/ceph + sudo ln -s /var/snap/microceph/current/conf/ /etc/ceph + sudo microceph enable rgw || true # workaround to ignore already enabled rgw + sudo microceph.ceph osd pool create cephfs_meta 32 + sudo microceph.ceph osd pool create cephfs_data 32 + sudo microceph.ceph fs new cephfs cephfs_meta cephfs_data + sudo microceph.ceph fs ls + sleep 30 + sudo microceph.ceph status + # Wait until there are no more "unkowns" pgs + for _ in $(seq 60); do + if sudo microceph.ceph pg stat | grep -wF unknown; then + sleep 1 + else + break + fi + done + sudo microceph.ceph status + sudo rm -f /snap/bin/rbd + + - name: "Run system tests (${{ matrix.go }}, ${{ matrix.suite }}, ${{ matrix.backend }})" + run: | + set -eux + chmod +x ~ + echo "root:1000000:1000000000" | sudo tee /etc/subuid /etc/subgid + cd test + sudo --preserve-env=PATH,GOPATH,GITHUB_ACTIONS,LXD_VERBOSE,LXD_BACKEND,LXD_CEPH_CLUSTER,LXD_CEPH_CEPHFS,LXD_CEPH_CEPHOBJECT_RADOSGW,LXD_OFFLINE,LXD_SKIP_TESTS,LXD_REQUIRED_TESTS, LXD_BACKEND=${{ matrix.backend }} ./main.sh ${{ matrix.suite }} + + client: + name: Client + strategy: + fail-fast: false + matrix: + go: + - 1.18.x + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Go (${{ matrix.go }}) + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + + - name: Create build directory + run: | + mkdir bin + + - name: Build static lxc + env: + CGO_ENABLED: 0 + run: | + go build -o bin ./lxc + + - name: Build static lxd-p2c + if: runner.os == 'Linux' + env: + CGO_ENABLED: 0 + run: | + go build -o bin ./lxd-p2c + + - name: Unit tests (client) + env: + CGO_ENABLED: 0 + run: go test -v ./client/... + + - name: Unit tests (lxc) + env: + CGO_ENABLED: 0 + run: go test -v ./lxc/... + + - name: Unit tests (shared) + env: + CGO_ENABLED: 0 + run: go test -v ./shared/... + + - name: Upload lxc client artifacts + uses: actions/upload-artifact@v4 + continue-on-error: true + with: + name: ${{ runner.os }} + path: bin/ + + documentation: + name: Documentation + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Go (1.18) + uses: actions/setup-go@v5 + with: + go-version: 1.18.x + + - name: Build docs (Sphinx) + shell: 'script -q -e -c "export TERM=xterm-256color; bash {0}"' + run: | + set -eux + make doc + if [ -s doc/.sphinx/warnings.txt ]; then cat doc/.sphinx/warnings.txt; exit 1; fi + + - name: Upload documentation artifacts + if: always() + uses: actions/upload-artifact@v4 + with: + name: documentation + path: doc/html + + snap: + name: Trigger snap edge build + runs-on: ubuntu-22.04 + needs: [code-tests, system-tests, client, documentation] + if: ${{ github.repository == 'canonical/lxd' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Launchpad SSH access + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock + LAUNCHPAD_LXD_BOT_KEY: ${{ secrets.LAUNCHPAD_LXD_BOT_KEY }} + run: | + set -eux + mkdir -m 0700 -p ~/.ssh/ + ssh-agent -a "${SSH_AUTH_SOCK}" > /dev/null + ssh-add - <<< "${{ secrets.LAUNCHPAD_LXD_BOT_KEY }}" + ssh-add -L > ~/.ssh/id_ed25519.pub + # In ephemeral environments like GitHub Action runners, relying on TOFU isn't providing any security + # so require the key obtained by `ssh-keyscan` to match the expected hash from https://help.launchpad.net/SSHFingerprints + ssh-keyscan git.launchpad.net >> ~/.ssh/known_hosts + ssh-keygen -qlF git.launchpad.net | grep -xF 'git.launchpad.net RSA SHA256:UNOzlP66WpDuEo34Wgs8mewypV0UzqHLsIFoqwe8dYo' + + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: 1.22.x + + - name: Trigger Launchpad snap build + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock + TARGET: >- + ${{ fromJson('{ + "main": "latest-edge", + "stable-4.0": "4.0-edge", + }')[github.ref_name] }} + run: | + set -eux + git config --global transfer.fsckobjects true + git config --global user.name "Canonical LXD Bot" + git config --global user.email "lxd@lists.canonical.com" + git config --global commit.gpgsign true + git config --global gpg.format "ssh" + git config --global user.signingkey ~/.ssh/id_ed25519.pub + localRev="$(git rev-parse HEAD)" + go install github.com/canonical/lxd-ci/lxd-snapcraft@latest + git clone -b "${TARGET}" git+ssh://lxdbot@git.launchpad.net/~canonical-lxd/lxd ~/lxd-pkg-snap-lp + cd ~/lxd-pkg-snap-lp + lxd-snapcraft -package lxd -set-version "git-${localRev:0:7}" -set-source-commit "${localRev}" + git add --all + git commit --all --quiet -s --allow-empty -m "Automatic upstream build (${TARGET})" -m "Upstream commit: ${localRev}" + git show + git push --quiet diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 000000000000..7aa61731a7d1 --- /dev/null +++ b/.github/workflows/triage.yml @@ -0,0 +1,41 @@ +name: Triaging +on: + pull_request_target: + issues: + types: + - labeled + - unlabeled + +permissions: + contents: read + +jobs: + label: + if: github.event.pull_request + permissions: + contents: read # for actions/labeler to determine modified files + pull-requests: write # for actions/labeler to add labels to PRs + name: PR labels + runs-on: ubuntu-22.04 + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true + notify: + name: Notify + permissions: + contents: read + pull-requests: write + issues: write + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Notify + uses: iamfj/action-label-notification@v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + mapping: > + - label: Documentation + recipients: + - '@ru-fu' diff --git a/.gitignore b/.gitignore index 75dd3db51d3a..dbbc8d3b90d3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,11 +18,12 @@ test/macaroon-identity/macaroon-identity # Sphinx doc/html/ -.sphinx/deps/ -.sphinx/themes/ -.sphinx/venv/ -.sphinx/warnings.txt -.sphinx/_static/swagger-ui +doc/.sphinx/deps/ +doc/.sphinx/themes/ +doc/.sphinx/venv/ +doc/.sphinx/warnings.txt +doc/.sphinx/_static/swagger-ui +doc/.sphinx/_static/download # For Atom ctags .tags diff --git a/.sphinx/_extra/rest-api.yaml b/.sphinx/_extra/rest-api.yaml deleted file mode 120000 index ad17be82a0ad..000000000000 --- a/.sphinx/_extra/rest-api.yaml +++ /dev/null @@ -1 +0,0 @@ -../../doc/rest-api.yaml \ No newline at end of file diff --git a/.sphinx/_templates/footer.html b/.sphinx/_templates/footer.html deleted file mode 100644 index 2be6d4ed752b..000000000000 --- a/.sphinx/_templates/footer.html +++ /dev/null @@ -1,66 +0,0 @@ -{# ru-fu: copied from Furo, with modifications as stated below #} - - - - diff --git a/.sphinx/_templates/header.html b/.sphinx/_templates/header.html deleted file mode 100644 index dea606bb2bd9..000000000000 --- a/.sphinx/_templates/header.html +++ /dev/null @@ -1,126 +0,0 @@ - diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 40f3730531bd..8f96b369d7a3 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -46,7 +46,7 @@ further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at maintainers@linuxcontainers.org. All +reported by contacting the project team at lxd@lists.canonical.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b8bd570f7f27..dbfb5bee8837 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ Check the following guidelines before contributing to the project. ## Pull requests Changes to this project should be proposed as pull requests on Github -at: +at: Proposed changes will then go through code review there and once acked, be merged in the main branch. @@ -98,10 +98,10 @@ even when part of a larger set. You may find `git commit -s` useful. ## Code of Conduct -When contributing, you must adhere to the Code of Conduct, which is available at: https://github.com/lxc/lxd/blob/master/CODE_OF_CONDUCT.md +When contributing, you must adhere to the Code of Conduct, which is available at: https://github.com/canonical/lxd/blob/main/CODE_OF_CONDUCT.md ## More information -For more information, see [Contributing](doc/contributing.md) in the documentation. +For more information, see [Contributing](https://documentation.ubuntu.com/lxd/en/stable-4.0/contributing/) in the documentation. diff --git a/Makefile b/Makefile index 21ca2fd4b0bc..65bbb4e08ac0 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,13 @@ POFILES=$(wildcard po/*.po) MOFILES=$(patsubst %.po,%.mo,$(POFILES)) LINGUAS=$(basename $(POFILES)) POTFILE=po/$(DOMAIN).pot -VERSION=$(shell grep "var Version" shared/version/flex.go | cut -d'"' -f2) +VERSION=$(or ${CUSTOM_VERSION},$(shell grep "var Version" shared/version/flex.go | cut -d'"' -f2)) ARCHIVE=lxd-$(VERSION).tar HASH := \# TAG_SQLITE3=$(shell printf "$(HASH)include \nvoid main(){dqlite_node_id n = 1;}" | $(CC) ${CGO_CFLAGS} -o /dev/null -xc - >/dev/null 2>&1 && echo "libsqlite3") GOPATH ?= $(shell go env GOPATH) CGO_LDFLAGS_ALLOW ?= (-Wl,-wrap,pthread_create)|(-Wl,-z,now) -SPHINXENV=.sphinx/venv/bin/activate +SPHINXENV=doc/.sphinx/venv/bin/activate ifneq "$(wildcard vendor)" "" RAFT_PATH=$(CURDIR)/vendor/raft @@ -53,9 +53,8 @@ lxd-p2c: .PHONY: deps deps: @if [ ! -e "$(RAFT_PATH)" ]; then \ - git clone --depth=1 "https://github.com/canonical/raft" "$(RAFT_PATH)"; \ - elif [ -e "$(RAFT_PATH)/.git" ]; then \ - cd "$(RAFT_PATH)"; git pull; \ + git clone "https://github.com/canonical/raft" "$(RAFT_PATH)"; \ + cd "$(RAFT_PATH)"; git reset --hard abf9c42a9bb63c24920ab9f0bfbc4b7a47e7e5f4; \ fi cd "$(RAFT_PATH)" && \ @@ -65,9 +64,8 @@ deps: # dqlite @if [ ! -e "$(DQLITE_PATH)" ]; then \ - git clone --depth=1 "https://github.com/canonical/dqlite" "$(DQLITE_PATH)"; \ - elif [ -e "$(DQLITE_PATH)/.git" ]; then \ - cd "$(DQLITE_PATH)"; git pull; \ + git clone "https://github.com/canonical/dqlite" "$(DQLITE_PATH)"; \ + cd "$(DQLITE_PATH)"; git reset --hard 50ee9af350b2fb4e79f9eb58db22c8a0927138de; \ fi cd "$(DQLITE_PATH)" && \ @@ -108,26 +106,22 @@ update-schema: .PHONY: update-api update-api: ifeq "$(LXD_OFFLINE)" "" - (cd / ; GO111MODULE=on go get -v -x github.com/go-swagger/go-swagger/cmd/swagger) + (cd / ; GO111MODULE=on go install -v -x github.com/go-swagger/go-swagger/cmd/swagger) endif swagger generate spec -o doc/rest-api.yaml -w ./lxd -m .PHONY: doc doc: @echo "Setting up documentation build environment" - python3 -m venv .sphinx/venv - . $(SPHINXENV) ; pip install --upgrade -r .sphinx/requirements.txt - mkdir -p .sphinx/deps/ .sphinx/themes/ - git -C .sphinx/deps/swagger-ui pull || git clone --depth 1 https://github.com/swagger-api/swagger-ui.git .sphinx/deps/swagger-ui - mkdir -p .sphinx/_static/swagger-ui - ln -sf ../../deps/swagger-ui/dist/swagger-ui-bundle.js ../../deps/swagger-ui/dist/swagger-ui-standalone-preset.js ../../deps/swagger-ui/dist/swagger-ui.css .sphinx/_static/swagger-ui/ + python3 -m venv doc/.sphinx/venv + . $(SPHINXENV) ; pip install --upgrade -r doc/.sphinx/requirements.txt rm -Rf doc/html make doc-incremental .PHONY: doc-incremental doc-incremental: @echo "Build the documentation" - . $(SPHINXENV) ; sphinx-build -c .sphinx/ -b dirhtml doc/ doc/html/ -w .sphinx/warnings.txt + . $(SPHINXENV) ; sphinx-build -c doc/ -b dirhtml doc/ doc/html/ -w doc/.sphinx/warnings.txt .PHONY: doc-serve doc-serve: @@ -171,15 +165,15 @@ endif .PHONY: check check: default ifeq "$(LXD_OFFLINE)" "" - (cd / ; go get -v -x github.com/rogpeppe/godeps) - (cd / ; go get -v -x github.com/tsenart/deadcode) - (cd / ; go get -v -x golang.org/x/lint/golint) + (cd / ; go install -v -x github.com/rogpeppe/godeps) + (cd / ; go install -v -x github.com/tsenart/deadcode) + (cd / ; go install -v -x golang.org/x/lint/golint) endif CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" go test -v -tags "$(TAG_SQLITE3)" $(DEBUG) ./... cd test && ./main.sh .PHONY: dist -dist: +dist: doc # Cleanup rm -Rf $(ARCHIVE).gz @@ -198,6 +192,9 @@ dist: git clone --depth=1 https://github.com/canonical/raft $(TMP)/lxd-$(VERSION)/vendor/raft (cd $(TMP)/lxd-$(VERSION)/vendor/raft ; git show-ref HEAD | cut -d' ' -f1 > .gitref) + # Copy doc output + cp -r doc/html $(TMP)/lxd-$(VERSION)/doc/html/ + # Assemble tarball tar --exclude-vcs -C $(TMP) -zcf $(ARCHIVE).gz lxd-$(VERSION)/ @@ -223,9 +220,9 @@ update-po: .PHONY: update-pot update-pot: ifeq "$(LXD_OFFLINE)" "" - (cd / ; go get -v -x github.com/snapcore/snapd/i18n/xgettext-go) + (cd / ; go install -v -x github.com/snapcore/snapd/i18n/xgettext-go@2.57.1) endif - xgettext-go -o po/$(DOMAIN).pot --add-comments-tag=TRANSLATORS: --sort-output --package-name=$(DOMAIN) --msgid-bugs-address=lxc-devel@lists.linuxcontainers.org --keyword=i18n.G --keyword-plural=i18n.NG lxc/*.go lxc/*/*.go + xgettext-go -o po/$(DOMAIN).pot --add-comments-tag=TRANSLATORS: --sort-output --package-name=$(DOMAIN) --msgid-bugs-address=lxd@lists.canonical.com --keyword=i18n.G --keyword-plural=i18n.NG lxc/*.go lxc/*/*.go .PHONY: build-mo build-mo: $(MOFILES) diff --git a/README.md b/README.md index 5cd6a1702d87..ab7309b32149 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,32 @@ -[![LXD](https://linuxcontainers.org/static/img/containers.png)](https://linuxcontainers.org/lxd) + + # LXD LXD is a next generation system container and virtual machine manager. It offers a unified user experience around full Linux systems running inside containers or virtual machines. -It's image based with pre-made images available for a [wide number of Linux distributions](https://images.linuxcontainers.org) +It's image based with pre-made images available for a [wide number of Linux distributions](https://images.lxd.canonical.com) and is built around a very powerful, yet pretty simple, REST API. -To get a better idea of what LXD is and what it does, you can [try it online](https://linuxcontainers.org/lxd/try-it/)! -Then if you want to run it locally, take a look at our [getting started guide](https://linuxcontainers.org/lxd/getting-started-cli/). -- Release announcements: https://linuxcontainers.org/lxd/news/ -- Release tarballs: https://linuxcontainers.org/lxd/downloads/ -- Documentation: https://linuxcontainers.org/lxd/docs/stable-4.0/ +## Get started + +See [Getting started](https://documentation.ubuntu.com/lxd/en/stable-4.0/getting_started/) in the LXD documentation for installation instructions and first steps. + +- Release announcements: [`https://discourse.ubuntu.com/c/lxd/news/`](https://discourse.ubuntu.com/c/lxd/news/) +- Release tarballs: [`https://github.com/canonical/lxd/releases/`](https://github.com/canonical/lxd/releases/) +- Documentation: [`https://documentation.ubuntu.com/lxd/en/stable-4.0/`](https://documentation.ubuntu.com/lxd/en/stable-4.0/) + + ## Status Type | Service | Status --- | --- | --- -CI (client) | GitHub | [![Build Status](https://github.com/lxc/lxd/workflows/Client%20build%20and%20unit%20tests/badge.svg?branch=stable-4.0)](https://github.com/lxc/lxd/actions) -CI (server) | Jenkins | [![Build Status](https://jenkins.linuxcontainers.org/job/lxd-github-commit/badge/icon)](https://jenkins.linuxcontainers.org/job/lxd-github-commit/) -Go documentation | Godoc | [![GoDoc](https://godoc.org/github.com/lxc/lxd/client?status.svg)](https://godoc.org/github.com/lxc/lxd/client) -Static analysis | GoReport | [![Go Report Card](https://goreportcard.com/badge/github.com/lxc/lxd)](https://goreportcard.com/report/github.com/lxc/lxd) +Tests | GitHub | [![Build Status](https://github.com/canonical/lxd/workflows/Client%20build%20and%20unit%20tests/badge.svg?branch=stable-4.0)](https://github.com/canonical/lxd/actions?query=event%3Apush+branch%3Astable-4.0) +Go documentation | Godoc | [![GoDoc](https://godoc.org/github.com/canonical/lxd/client?status.svg)](https://godoc.org/github.com/canonical/lxd/client) +Static analysis | GoReport | [![Go Report Card](https://goreportcard.com/badge/github.com/canonical/lxd)](https://goreportcard.com/report/github.com/canonical/lxd) Translations | Weblate | [![Translation status](https://hosted.weblate.org/widgets/linux-containers/-/svg-badge.svg)](https://hosted.weblate.org/projects/linux-containers/lxd/) -Project status | CII Best Practices | [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1086/badge)](https://bestpractices.coreinfrastructure.org/projects/1086) @@ -36,10 +39,8 @@ Linux | [Snap](https://snapcraft.io/lxd) | snap i Windows | [Chocolatey](https://chocolatey.org/packages/lxc) | choco install lxc MacOS | [Homebrew](https://formulae.brew.sh/formula/lxc) | brew install lxc -More instructions on installing LXD for a wide variety of Linux distributions and operating systems [can be found on our website](https://linuxcontainers.org/lxd/getting-started-cli/). - -To install LXD from source, see [Installing LXD](doc/installing.md) in the documentation. +For more instructions on installing LXD for a wide variety of Linux distributions and operating systems, and to install LXD from source, see [How to install LXD](https://documentation.ubuntu.com/lxd/en/stable-4.0/installing/) in the documentation. ## Security @@ -54,7 +55,7 @@ Consider the following aspects to ensure that your LXD installation is secure: - Configure your network interfaces to be secure. -See [Security](doc/security.md) for detailed information. +See [Security](https://documentation.ubuntu.com/lxd/en/stable-4.0/security/) for detailed information. **IMPORTANT:** @@ -70,26 +71,26 @@ Therefore, you should only give such access to users who you'd trust with root a The following channels are available for you to interact with the LXD community. ### Bug reports -You can file bug reports and feature requests at: https://github.com/lxc/lxd/issues/new + +You can file bug reports and feature requests at: [`https://github.com/canonical/lxd/issues/new`](https://github.com/canonical/lxd/issues/new) ### Forum -A discussion forum is available at: https://discuss.linuxcontainers.org -### Mailing lists -We use the LXC mailing lists for developer and user discussions. You can -find and subscribe to those at: https://lists.linuxcontainers.org +A discussion forum is available at: [`https://discourse.ubuntu.com/c/lxd/`](https://discourse.ubuntu.com/c/lxd/) ### IRC -If you prefer live discussions, you can find us in [#lxc](https://kiwiirc.com/client/irc.libera.chat/#lxc) on irc.libera.chat. See [Getting started with IRC](https://discuss.linuxcontainers.org/t/getting-started-with-irc/11920) if needed. + +If you prefer live discussions, you can find us in [`#lxd`](https://web.libera.chat/#lxd) on `irc.libera.chat`. See [Getting started with IRC](https://discuss.linuxcontainers.org/t/getting-started-with-irc/11920) if needed. ### Commercial support Commercial support for LXD can be obtained through [Canonical Ltd](https://www.canonical.com). ## Documentation -The official documentation is available at: https://linuxcontainers.org/lxd/docs/master/ -You can find additional resources on the [website](https://linuxcontainers.org/lxd/articles), on [YouTube](https://www.youtube.com/channel/UCuP6xPt0WTeZu32CkQPpbvA) and in the [Tutorials section](https://discuss.linuxcontainers.org/c/tutorials/) in the forum. +The official documentation is available at: [`https://documentation.ubuntu.com/lxd/en/stable-4.0/`](https://documentation.ubuntu.com/lxd/en/stable-4.0/) + +You can find additional resources on the [website](https://ubuntu.com/lxd), on [YouTube](https://www.youtube.com/channel/UCuP6xPt0WTeZu32CkQPpbvA) and in the [Tutorials section](https://discourse.ubuntu.com/c/lxd/tutorials/) in the forum. diff --git a/SECURITY.md b/SECURITY.md index ece5eb60d852..579db89d529e 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -25,18 +25,9 @@ but we simply do not consider such containers to be root safe. Unprivileged container escapes are certainly something we'd consider a security issue, especially if somehow facilitated by LXD. -More details can be found here: https://linuxcontainers.org/lxc/security/ +## Ubuntu Security disclosure and embargo policy -## Reporting a vulnerability -The easiest way to report a security issue is by e-mail to: - security@linuxcontainers.org - -This e-mail address will reach the three main maintainers for LXC/LXD/LXCFS: - - Christian Brauner - - Stéphane Graber - - Serge Hallyn - -We will be working with you to determine whether the issue qualifies as a -security issue, if so in what component and then handle figuring out a -fix, getting a CVE assigned and coordinating the release of the fix to -the various Linux distributions. +See the [Ubuntu Security disclosure and embargo +policy](https://ubuntu.com/security/disclosure-policy) for information +about how to contact the Ubuntu Security Team, what you can expect when +you contact us, and what we expect from you. diff --git a/client/connection.go b/client/connection.go index ff5b0a283c15..145cc10a4b19 100644 --- a/client/connection.go +++ b/client/connection.go @@ -15,9 +15,9 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/macaroon-bakery.v2/httpbakery" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/simplestreams" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/simplestreams" ) // ConnectionArgs represents a set of common connection properties diff --git a/client/doc.go b/client/doc.go index f2de2394926c..4352b552e777 100644 --- a/client/doc.go +++ b/client/doc.go @@ -114,7 +114,7 @@ // } // // // Connect to the remote SimpleStreams server -// d, err = lxd.ConnectSimpleStreams("https://images.linuxcontainers.org", nil) +// d, err = lxd.ConnectSimpleStreams("https://images.lxd.canonical.com", nil) // if err != nil { // return err // } diff --git a/client/events.go b/client/events.go index 3ccdf6d8a27c..33466e8aeeb5 100644 --- a/client/events.go +++ b/client/events.go @@ -5,7 +5,7 @@ import ( "fmt" "sync" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // The EventListener struct is used to interact with a LXD event stream diff --git a/client/interfaces.go b/client/interfaces.go index 54d1a511485e..20da099409c6 100644 --- a/client/interfaces.go +++ b/client/interfaces.go @@ -6,9 +6,9 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/ioprogress" ) // The Operation type represents a currently running operation. diff --git a/client/lxd.go b/client/lxd.go index c3e045795284..f3d60be5ea8f 100644 --- a/client/lxd.go +++ b/client/lxd.go @@ -14,9 +14,9 @@ import ( "gopkg.in/macaroon-bakery.v2/bakery" "gopkg.in/macaroon-bakery.v2/httpbakery" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" neturl "net/url" ) diff --git a/client/lxd_certificates.go b/client/lxd_certificates.go index cdf229e4659b..62cd2158c563 100644 --- a/client/lxd_certificates.go +++ b/client/lxd_certificates.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Certificate handling functions diff --git a/client/lxd_cluster.go b/client/lxd_cluster.go index bc6e70bebc4c..d9106798f620 100644 --- a/client/lxd_cluster.go +++ b/client/lxd_cluster.go @@ -3,7 +3,7 @@ package lxd import ( "fmt" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetCluster returns information about a cluster diff --git a/client/lxd_containers.go b/client/lxd_containers.go index 279ee06190d9..a8407ab6cd6c 100644 --- a/client/lxd_containers.go +++ b/client/lxd_containers.go @@ -10,11 +10,11 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // Container handling functions diff --git a/client/lxd_events.go b/client/lxd_events.go index d9ac706f0a7a..670e3cfee8d1 100644 --- a/client/lxd_events.go +++ b/client/lxd_events.go @@ -6,9 +6,9 @@ import ( "fmt" "time" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" ) // Event handling functions diff --git a/client/lxd_images.go b/client/lxd_images.go index 9e46d77462f8..e694d3b20b47 100644 --- a/client/lxd_images.go +++ b/client/lxd_images.go @@ -12,11 +12,11 @@ import ( "os" "strings" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // Image handling functions diff --git a/client/lxd_instances.go b/client/lxd_instances.go index 3bbbe3958c79..faaded1ffe1d 100644 --- a/client/lxd_instances.go +++ b/client/lxd_instances.go @@ -10,11 +10,11 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // Instance handling functions. diff --git a/client/lxd_network_acls.go b/client/lxd_network_acls.go index 9d9a1285b7aa..e0cc0c45a88a 100644 --- a/client/lxd_network_acls.go +++ b/client/lxd_network_acls.go @@ -6,7 +6,7 @@ import ( "net/http" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetNetworkACLNames returns a list of network ACL names. diff --git a/client/lxd_network_forwards.go b/client/lxd_network_forwards.go index 22f1f8fce459..5efa7098885a 100644 --- a/client/lxd_network_forwards.go +++ b/client/lxd_network_forwards.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetNetworkForwardAddresses returns a list of network forward listen addresses. diff --git a/client/lxd_network_peer.go b/client/lxd_network_peer.go index 804236834b3f..386bab464c3f 100644 --- a/client/lxd_network_peer.go +++ b/client/lxd_network_peer.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetNetworkPeerNames returns a list of network peer names. diff --git a/client/lxd_network_zones.go b/client/lxd_network_zones.go index 50a62b2d5da7..708ea046b05c 100644 --- a/client/lxd_network_zones.go +++ b/client/lxd_network_zones.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetNetworkZoneNames returns a list of network zone names. diff --git a/client/lxd_networks.go b/client/lxd_networks.go index 193eef8c8bfb..0961cb6098b4 100644 --- a/client/lxd_networks.go +++ b/client/lxd_networks.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetNetworkNames returns a list of network names diff --git a/client/lxd_operations.go b/client/lxd_operations.go index 62c810837af4..a0ad065853fb 100644 --- a/client/lxd_operations.go +++ b/client/lxd_operations.go @@ -6,7 +6,7 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetOperationUUIDs returns a list of operation uuids diff --git a/client/lxd_profiles.go b/client/lxd_profiles.go index 4d9efcc05a27..270fdfe388dc 100644 --- a/client/lxd_profiles.go +++ b/client/lxd_profiles.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Profile handling functions diff --git a/client/lxd_projects.go b/client/lxd_projects.go index e9a499bc889d..b2a7d248e3b5 100644 --- a/client/lxd_projects.go +++ b/client/lxd_projects.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Project handling functions diff --git a/client/lxd_server.go b/client/lxd_server.go index 13f20a7cf514..731afd55a77e 100644 --- a/client/lxd_server.go +++ b/client/lxd_server.go @@ -5,8 +5,8 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // Server handling functions diff --git a/client/lxd_storage_pools.go b/client/lxd_storage_pools.go index 4bc5cd4ade53..ddad3c20216f 100644 --- a/client/lxd_storage_pools.go +++ b/client/lxd_storage_pools.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Storage pool handling functions diff --git a/client/lxd_storage_volumes.go b/client/lxd_storage_volumes.go index d6e874bf51fe..932b3e846413 100644 --- a/client/lxd_storage_volumes.go +++ b/client/lxd_storage_volumes.go @@ -6,11 +6,11 @@ import ( "net/http" "net/url" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // Storage volumes handling function diff --git a/client/lxd_warnings.go b/client/lxd_warnings.go index 93bfe8b98527..052bb5cf2da1 100644 --- a/client/lxd_warnings.go +++ b/client/lxd_warnings.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Warning handling functions diff --git a/client/operations.go b/client/operations.go index c7d7dbca6795..46ef572c089e 100644 --- a/client/operations.go +++ b/client/operations.go @@ -7,7 +7,7 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // The Operation type represents an ongoing LXD operation (asynchronous processing) diff --git a/client/simplestreams.go b/client/simplestreams.go index 015389e15e27..74159b1b4fa6 100644 --- a/client/simplestreams.go +++ b/client/simplestreams.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - "github.com/lxc/lxd/shared/simplestreams" + "github.com/canonical/lxd/shared/simplestreams" ) // ProtocolSimpleStreams implements a SimpleStreams API client diff --git a/client/simplestreams_images.go b/client/simplestreams_images.go index 0cd506d9528e..a370e4d656a7 100644 --- a/client/simplestreams_images.go +++ b/client/simplestreams_images.go @@ -12,8 +12,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // Image handling functions diff --git a/client/util.go b/client/util.go index 46a28970234b..50f1febf8da5 100644 --- a/client/util.go +++ b/client/util.go @@ -9,7 +9,7 @@ import ( "os" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) func tlsHTTPClient(client *http.Client, tlsClientCert string, tlsClientKey string, tlsCA string, tlsServerCert string, insecureSkipVerify bool, proxy func(req *http.Request) (*url.URL, error)) (*http.Client, error) { diff --git a/doc/.readthedocs.yaml b/doc/.readthedocs.yaml new file mode 100644 index 000000000000..15aa6a0bb580 --- /dev/null +++ b/doc/.readthedocs.yaml @@ -0,0 +1,27 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + builder: dirhtml + configuration: doc/conf.py + fail_on_warning: true + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - pdf + +# Optionally declare the Python requirements required to build your docs +python: + install: + - requirements: doc/.sphinx/requirements.txt \ No newline at end of file diff --git a/doc/.sphinx/_extra/rest-api.yaml b/doc/.sphinx/_extra/rest-api.yaml new file mode 120000 index 000000000000..47b127652378 --- /dev/null +++ b/doc/.sphinx/_extra/rest-api.yaml @@ -0,0 +1 @@ +../../rest-api.yaml \ No newline at end of file diff --git a/.sphinx/_static/custom.css b/doc/.sphinx/_static/custom.css similarity index 59% rename from .sphinx/_static/custom.css rename to doc/.sphinx/_static/custom.css index 36e81a5412f5..46faff659dd4 100644 --- a/.sphinx/_static/custom.css +++ b/doc/.sphinx/_static/custom.css @@ -108,3 +108,67 @@ table.min-width-4-8 td.text-left:nth-child(4) { abbr[title] { text-decoration: underline solid #cdcdcd; } + +/** Use the same style for right-details as for left-details **/ +.bottom-of-page .right-details { + font-size: var(--font-size--small); + display: block; +} + +/** Version switcher */ +button.version_select { + color: var(--color-foreground-primary); + background-color: var(--color-toc-background); + padding: 5px 10px; + border: none; +} + +.version_select:hover, .version_select:focus { + background-color: var(--color-sidebar-item-background--hover); +} + +.version_dropdown { + position: relative; + display: inline-block; + text-align: right; + font-size: var(--sidebar-item-font-size); +} + +.available_versions { + display: none; + position: absolute; + right: 0px; + background-color: var(--color-toc-background); + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 11; +} + +.available_versions a { + color: var(--color-foreground-primary); + padding: 12px 16px; + text-decoration: none; + display: block; +} + +.available_versions a:hover {background-color: var(--color-sidebar-item-background--current)} + +.show {display:block;} + +/** Fix the styling of the version box for readthedocs **/ + +#furo-readthedocs-versions .rst-versions, #furo-readthedocs-versions .rst-current-version, #furo-readthedocs-versions:focus-within .rst-current-version, #furo-readthedocs-versions:hover .rst-current-version { + background: var(--color-sidebar-item-background--hover); +} + +.rst-versions .rst-other-versions dd a { + color: var(--color-link); +} + +#furo-readthedocs-versions:focus-within .rst-current-version .fa-book, #furo-readthedocs-versions:hover .rst-current-version .fa-book, .rst-versions .rst-other-versions { + color: var(--color-sidebar-link-text); +} + +.rst-versions .rst-current-version { + color: var(--color-version-popup); + font-weight: bolder; +} diff --git a/doc/.sphinx/_static/favicon.ico b/doc/.sphinx/_static/favicon.ico new file mode 100644 index 000000000000..6ea26dd625d1 Binary files /dev/null and b/doc/.sphinx/_static/favicon.ico differ diff --git a/.sphinx/_static/header-nav.js b/doc/.sphinx/_static/header-nav.js similarity index 100% rename from .sphinx/_static/header-nav.js rename to doc/.sphinx/_static/header-nav.js diff --git a/.sphinx/_static/swagger-override.css b/doc/.sphinx/_static/swagger-override.css similarity index 100% rename from .sphinx/_static/swagger-override.css rename to doc/.sphinx/_static/swagger-override.css diff --git a/doc/.sphinx/_static/tag.png b/doc/.sphinx/_static/tag.png new file mode 100644 index 000000000000..b36fe68fad90 Binary files /dev/null and b/doc/.sphinx/_static/tag.png differ diff --git a/doc/.sphinx/_templates/footer.html b/doc/.sphinx/_templates/footer.html new file mode 100644 index 000000000000..b7c93e08c581 --- /dev/null +++ b/doc/.sphinx/_templates/footer.html @@ -0,0 +1,75 @@ +{# ru-fu: copied from Furo, with modifications as stated below #} + + +
+
+ {%- if show_copyright %} + + {%- endif %} + + {# ru-fu: removed "Made with" #} + + {%- if last_updated -%} +
+ {% trans last_updated=last_updated|e -%} + Last updated on {{ last_updated }} + {%- endtrans -%} +
+ {%- endif %} +
+
+ + {# ru-fu: replaced RTD icons with our links #} + + {%- if show_source and has_source and sourcename %} + + {%- endif %} + {% if github_url and github_version and github_folder and github_filetype %} + + {% endif %} + +
+
+ diff --git a/doc/.sphinx/_templates/header.html b/doc/.sphinx/_templates/header.html new file mode 100644 index 000000000000..7cbc3750ac90 --- /dev/null +++ b/doc/.sphinx/_templates/header.html @@ -0,0 +1,214 @@ + diff --git a/.sphinx/_templates/page.html b/doc/.sphinx/_templates/page.html similarity index 100% rename from .sphinx/_templates/page.html rename to doc/.sphinx/_templates/page.html diff --git a/.sphinx/requirements.txt b/doc/.sphinx/requirements.txt similarity index 88% rename from .sphinx/requirements.txt rename to doc/.sphinx/requirements.txt index af3ea7ad2991..258b882e7a56 100644 --- a/.sphinx/requirements.txt +++ b/doc/.sphinx/requirements.txt @@ -16,7 +16,7 @@ pytz==2021.1 requests==2.26.0 six==1.16.0 snowballstemmer==2.1.0 -Sphinx==4.1.2 +Sphinx==4.2.0 sphinx-autobuild==2021.3.14 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 @@ -31,3 +31,7 @@ sphinx-tabs sphinx-reredirects linkify-it-py furo +sphinxext-opengraph>=0.6.1 +gitpython +wget +sphinx-notfound-page diff --git a/doc/404.md b/doc/404.md new file mode 100644 index 000000000000..8f6841fda03b --- /dev/null +++ b/doc/404.md @@ -0,0 +1,13 @@ +--- +orphan: true +nosearch: true +--- + +# Page not found + +Sorry, but the documentation page that you are looking for was not found. + +Documentation changes over time, and pages are moved around. +We try to redirect you to the updated content where possible, but unfortunately, that didn't work this time (maybe because the content you were looking for does not exist in this version of the documentation). + +You can try to use the navigation to locate the content you're looking for, or search for a similar page. diff --git a/doc/README.md b/doc/README.md index 1e9e2dc88e5d..70f9f8ace1c5 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,14 +1,14 @@ # LXD documentation -The LXD documentation is available at: https://linuxcontainers.org/lxd/docs/master/ +The LXD documentation is available at: -GitHub provides a basic rendering of the documentation as well, but important features like includes and clickable links are missing. Therefore, we recommend reading the [published documentation](https://linuxcontainers.org/lxd/docs/master/). +GitHub provides a basic rendering of the documentation as well, but important features like includes and clickable links are missing. Therefore, we recommend reading the [published documentation](https://documentation.ubuntu.com/lxd/en/stable-4.0/). ## Documentation format The documentation is written in [Markdown](https://commonmark.org/) with [MyST](https://myst-parser.readthedocs.io/) extensions. -For syntax help and guidelines, see the [documentation cheat sheet](https://linuxcontainers.org/lxd/docs/master/doc-cheat-sheet/) ([source](doc-cheat-sheet.md?plain=1)). +For syntax help and guidelines, see the [documentation cheat sheet](https://documentation.ubuntu.com/lxd/en/stable-4.0/doc-cheat-sheet/) ([source](doc-cheat-sheet.md?plain=1)). ## Building the documentation diff --git a/.sphinx/conf.py b/doc/conf.py similarity index 70% rename from .sphinx/conf.py rename to doc/conf.py index 16d8d1846572..3e8ea70c1fba 100644 --- a/.sphinx/conf.py +++ b/doc/conf.py @@ -1,6 +1,21 @@ import datetime import os import yaml +from git import Repo +import wget + +# Download and link swagger-ui files +if not os.path.isdir('.sphinx/deps/swagger-ui'): + Repo.clone_from('https://github.com/swagger-api/swagger-ui', '.sphinx/deps/swagger-ui', depth=1) + +os.makedirs('.sphinx/_static/swagger-ui/', exist_ok=True) + +if not os.path.islink('.sphinx/_static/swagger-ui/swagger-ui-bundle.js'): + os.symlink('../../deps/swagger-ui/dist/swagger-ui-bundle.js', '.sphinx/_static/swagger-ui/swagger-ui-bundle.js') +if not os.path.islink('.sphinx/_static/swagger-ui/swagger-ui-standalone-preset.js'): + os.symlink('../../deps/swagger-ui/dist/swagger-ui-standalone-preset.js', '.sphinx/_static/swagger-ui/swagger-ui-standalone-preset.js') +if not os.path.islink('.sphinx/_static/swagger-ui/swagger-ui.css'): + os.symlink('../../deps/swagger-ui/dist/swagger-ui.css', '.sphinx/_static/swagger-ui/swagger-ui.css') # Project config. project = "LXD" @@ -14,7 +29,9 @@ extensions = [ "myst_parser", "sphinx_tabs.tabs", - "sphinx_reredirects" + "sphinx_reredirects", + "sphinxext.opengraph", + "notfound.extension" ] myst_enable_extensions = [ @@ -26,21 +43,23 @@ myst_linkify_fuzzy_links=False myst_heading_anchors = 7 -if os.path.exists("../doc/substitutions.yaml"): - with open("../doc/substitutions.yaml", "r") as fd: +if os.path.exists("./substitutions.yaml"): + with open("./substitutions.yaml", "r") as fd: myst_substitutions = yaml.safe_load(fd.read()) + +notfound_urls_prefix = "/lxd/en/latest/" # Setup theme. -templates_path = ["_templates"] +templates_path = [".sphinx/_templates"] html_theme = "furo" html_show_sphinx = False html_last_updated_fmt = "" -html_favicon = "https://linuxcontainers.org/static/img/favicon.ico" -html_static_path = ['_static'] +html_favicon = ".sphinx/_static/favicon.ico" +html_static_path = ['.sphinx/_static'] html_css_files = ['custom.css'] html_js_files = ['header-nav.js'] -html_extra_path = ['_extra'] +html_extra_path = ['.sphinx/_extra'] html_theme_options = { "sidebar_hide_name": True, @@ -71,6 +90,7 @@ "color-highlighted-background": "#EbEbEb", "color-link-underline": "var(--color-background-primary)", "color-link-underline--hover": "var(--color-background-primary)", + "color-version-popup": "#772953" }, "dark_css_variables": { "color-foreground-secondary": "var(--color-foreground-primary)", @@ -94,12 +114,13 @@ "color-highlighted-background": "#666", "color-link-underline": "var(--color-background-primary)", "color-link-underline--hover": "var(--color-background-primary)", + "color-version-popup": "#F29879" }, } html_context = { - "github_url": "https://github.com/lxc/lxd", - "github_version": "master", + "github_url": "https://github.com/canonical/lxd", + "github_version": "stable-4.0", "github_folder": "/doc/", "github_filetype": "md" } @@ -109,9 +130,14 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ['html', 'README.md'] +exclude_patterns = ['html', 'README.md', '.sphinx'] + +# Open Graph configuration + +ogp_site_url = "https://documentation.ubuntu.com/lxd/en/stable-4.0/" +ogp_site_name = "LXD documentation" +ogp_image = "https://documentation.ubuntu.com/lxd/en/stable-4.0/_static/tag.png" # Setup redirects (https://documatt.gitlab.io/sphinx-reredirects/usage.html) redirects = { - "index/index": "../index.html", } diff --git a/doc/database.md b/doc/database.md index 3b4212dd4a66..2c288d47a4d8 100644 --- a/doc/database.md +++ b/doc/database.md @@ -56,7 +56,7 @@ against the local or global database, you can use the ``lxd sql`` command (run You should only need to do that in order to recover from broken updates or bugs. Please consult the LXD team first (creating a [GitHub -issue](https://github.com/lxc/lxd/issues/new) or +issue](https://github.com/canonical/lxd/issues/new) or [forum](https://discuss.linuxcontainers.org/) post). ## Running custom queries at LXD daemon startup diff --git a/doc/doc-cheat-sheet.md b/doc/doc-cheat-sheet.md index aa0d9f6f02c8..921f21ab2747 100644 --- a/doc/doc-cheat-sheet.md +++ b/doc/doc-cheat-sheet.md @@ -1,8 +1,9 @@ --- orphan: true -substitutions: - reuse_key: "This is **included** text." - advanced_reuse_key: "This is a substitution that includes a code block: +myst: + substitutions: + reuse_key: "This is **included** text." + advanced_reuse_key: "This is a substitution that includes a code block: ``` code block ```" @@ -129,10 +130,10 @@ For external links, use only the URL, or Markdown syntax if you want to override * - Input - Output -* - `https://linuxcontainers.org` - - https://linuxcontainers.org -* - `[Linux Containers](https://linuxcontainers.org)` - - [Linux Containers](https://linuxcontainers.org) +* - `https://ubuntu.com/lxd` + - [https://ubuntu.com/lxd](https://ubuntu.com/lxd) +* - `[LXD](https://ubuntu.com/lxd)` + - [LXD](https://ubuntu.com/lxd) ``` To display a URL as text and prevent it from being linked, add a ``: @@ -142,8 +143,8 @@ To display a URL as text and prevent it from being linked, add a `` * - Input - Output -* - `https://linuxcontainers.org` - - https://linuxcontainers.org +* - `https://ubuntu.com/lxd` + - https://ubuntu.com/lxd ``` @@ -443,18 +444,18 @@ Adhere to the following conventions: * - Input - Output * - ``` - ![Alt text](https://linuxcontainers.org/static/img/containers.png) + ![Alt text](https://documentation.ubuntu.com/lxd/en/latest/_static/tag.png) ``` - - ![Alt text](https://linuxcontainers.org/static/img/containers.png) + - ![Alt text](https://documentation.ubuntu.com/lxd/en/latest/_static/tag.png) * - ```` - ```{figure} https://linuxcontainers.org/static/img/containers.png + ```{figure} https://documentation.ubuntu.com/lxd/en/latest/_static/tag.png :width: 100px :alt: Alt text Figure caption ``` ```` - - ```{figure} https://linuxcontainers.org/static/img/containers.png + - ```{figure} https://documentation.ubuntu.com/lxd/en/latest/_static/tag.png :width: 100px :alt: Alt text @@ -480,9 +481,10 @@ Substitutions can be defined in the following locations: ```` --- - substitutions: - reuse_key: "This is **included** text." - advanced_reuse_key: "This is a substitution that includes a code block: + myst: + substitutions: + reuse_key: "This is **included** text." + advanced_reuse_key: "This is a substitution that includes a code block: ``` code block ```" @@ -523,13 +525,13 @@ By combining file inclusion and substitutions, you can even replace parts of the % Include parts of the content from file [../README.md](../README.md) ```{include} ../README.md :start-after: Installing LXD from packages - :end-before: + :end-before: For more instructions on installing LXD ``` ```` - % Include parts of the content from file [../README.md](../README.md) ```{include} ../README.md :start-after: Installing LXD from packages - :end-before: + :end-before: For more instructions on installing LXD ``` ````` diff --git a/doc/external_resources.md b/doc/external_resources.md index a80451e27c88..cd47c84f32c8 100644 --- a/doc/external_resources.md +++ b/doc/external_resources.md @@ -3,6 +3,6 @@ ```{toctree} :maxdepth: 1 -Project repository -Image server +Project repository +Image server ``` diff --git a/doc/getting_started.md b/doc/getting_started.md index 5bea346c03ae..50364b29107c 100644 --- a/doc/getting_started.md +++ b/doc/getting_started.md @@ -1,3 +1,4 @@ + # Getting started In addition to the documentation in this section, see the [Getting Started guide](https://linuxcontainers.org/lxd/getting-started-cli/) on the website. diff --git a/doc/index.md b/doc/index.md index ad4129c55ab3..534aa5c49e57 100644 --- a/doc/index.md +++ b/doc/index.md @@ -1,6 +1,8 @@ + % Include content from [../README.md](../README.md) ```{include} ../README.md + :start-after: :end-before: ``` diff --git a/doc/installing.md b/doc/installing.md index a9e893f337e7..b5b8cbfda4ad 100644 --- a/doc/installing.md +++ b/doc/installing.md @@ -31,7 +31,7 @@ sudo apt install btrfs-progs To run the testsuite, you'll also need: ```bash -sudo apt install curl gettext jq sqlite3 uuid-runtime socat bind9-dnsutils +sudo apt install curl gettext jq sqlite3 socat bind9-dnsutils ``` ### From Source: Building the latest version @@ -42,7 +42,7 @@ integration into Linux distributions are not covered here and may be covered in future. ```bash -git clone https://github.com/lxc/lxd +git clone https://github.com/canonical/lxd cd lxd ``` @@ -109,4 +109,4 @@ group to talk to LXD; you can create your own group if you want): sudo -E PATH=${PATH} LD_LIBRARY_PATH=${LD_LIBRARY_PATH} $(go env GOPATH)/bin/lxd --group sudo ``` -*Note: If `newuidmap/newgidmap` tools are present on your system and `/etc/subuid`, `etc/subgid` exist, they must be configured to allow the root user a contiguous range of at least 10M uid/gid.* \ No newline at end of file +*Note: If `newuidmap/newgidmap` tools are present on your system and `/etc/subuid`, `etc/subgid` exist, they must be configured to allow the root user a contiguous range of at least 10M uid/gid.* diff --git a/doc/instance-exec.md b/doc/instance-exec.md new file mode 100644 index 000000000000..2937e6ec166d --- /dev/null +++ b/doc/instance-exec.md @@ -0,0 +1,51 @@ +# Instance command execution +LXD makes it easy to run a command inside a given instance. +For containers, this always works and is handled directly by LXD. +For virtual machines, this relies on the `lxd-agent` process running inside of the virtual machine. + +At the CLI level, this is achieved through the `lxc exec` command which +supports specifying not only the command to executed but also the +execution mode, user, group and working directory. + +At the API level, this is done through `/1.0/instances/NAME/exec`. + +## Execution mode +LXD can execute commands either interactively or non-interactively. + +In interactive mode, a pseudo-terminal device (PTS) will be used to handle input (stdin) and output (stdout, stderr). +This is automatically selected by the CLI if connected to a terminal emulator (not run from a script). + +In non-interactive mode, pipes are allocated instead, one for each of stdin, stdout and stderr. +This allows running a command and properly getting separate stdin, stdout and stderr as required by many scripts. + +## User, groups and working directory +LXD has a policy not to read data from within the instances or trusting anything that can be found in it. +This means that LXD will not be parsing things like `/etc/passwd`, `/etc/group` or `/etc/nsswitch.conf` +to handle user and group resolution. + +As a result, LXD also doesn't know where the home directory for the user +may be or what supplementary groups the user may be in. + +By default, LXD will run the command as root (uid 0) with the default group (gid 0) +and the working directory set to /root. + +The user, group and working directory can all be overridden but absolute values (uid, gid, path) +have to be provided as LXD will not do any resolution for you. + +## Environment +The environment variables set during an exec session come from a few sources: + - `environment.KEY=VALUE` directly set on the instance + - Environment variables directly passed during the exec session + - Default variables set by LXD + +For that last category, LXD will set the `PATH` to `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin` +and extend it with `/snap` and `/etc/NIXOS` if applicable. +Additionally `LANG` will be set to `C.UTF-8`. + +When running as root (uid 0), the following variables will also be set: + - `HOME` to `/root` + - `USER` to `root` + +When running as another user, it is the responsibility of the user to specify the correct values. + +Those defaults only get set if they're not in the instance configuration or directly overridden for the exec session. diff --git a/doc/instances.md b/doc/instances.md index 022c0ebadc2a..929c19686639 100644 --- a/doc/instances.md +++ b/doc/instances.md @@ -759,6 +759,10 @@ required | boolean | false | no | Whether or not this de GPU device entries simply make the requested gpu device appear in the instance. +```{note} +Container devices may match multiple GPUs at once. However, for virtual machines a device can only match a single GPU. +``` + ##### GPUs Available: The following GPUs can be specified using the `gputype` property: diff --git a/doc/metadata.yaml b/doc/metadata.yaml deleted file mode 100644 index e6e51f280661..000000000000 --- a/doc/metadata.yaml +++ /dev/null @@ -1,122 +0,0 @@ -site_title: LXD -site_logo_url: https://linuxcontainers.org/static/img/containers.png -navigation: - - title: Getting started - location: index.md - children: - - title: Requirements - location: requirements.md - - - title: Installing LXD - location: installing.md - - - title: Frequently asked - location: faq.md - - - title: Security - location: security.md - - - title: Contributing - location: contributing.md - - - title: Configuration - location: configuration.md - children: - - title: Containers - location: containers.md - - - title: Instances - location: instances.md - - - title: Networks - location: networks.md - - - title: Preseed files - location: preseed.md - - - title: Profiles - location: profiles.md - - - title: Projects - location: projects.md - - - title: Server settings - location: server.md - - - title: Storage pools - location: storage.md - - - title: Virtual machines - location: virtual-machines.md - - - title: Images - children: - - title: Architectures - location: architectures.md - - - title: Cloud-init - location: cloud-init.md - - - title: Handling - location: image-handling.md - - - title: Operation - children: - - title: Backups - location: backup.md - - - title: Clustering - location: clustering.md - - - title: Production setup - location: production-setup.md - - - title: REST API - children: - - title: Main API documentation - location: rest-api.md - - - title: Main API extensions - location: api-extensions.md - - - title: Instance API documentation - location: dev-lxd.md - - - title: Events API documentation - location: events.md - - - title: Internals & debugging - children: - - title: Container environment - location: container-environment.md - - - title: Instance migration - location: migration.md - - - title: Daemon behavior - location: daemon-behavior.md - - - title: Database - location: database.md - - - title: Debugging - location: debugging.md - - - title: Environment variables - location: environment.md - - - title: System call interception - location: syscall-interception.md - - - title: User namespace setup - location: userns-idmap.md - - - title: External resources - children: - - title: Project repository - location: https://github.com/lxc/lxd - external: true - - - title: Image server - location: https://images.linuxcontainers.org - external: true diff --git a/doc/operation.md b/doc/operation.md index f49cf5bd94e7..ee4031262b64 100644 --- a/doc/operation.md +++ b/doc/operation.md @@ -5,6 +5,7 @@ Backups clustering +instance-exec production-setup authentication ``` diff --git a/doc/requirements.md b/doc/requirements.md index e11488a3922f..b9cd5950e37a 100644 --- a/doc/requirements.md +++ b/doc/requirements.md @@ -1,6 +1,6 @@ # Requirements ## Go -LXD requires Go 1.13 or higher and is only tested with the golang compiler. +LXD requires Go 1.16 or higher and is only tested with the golang compiler. We recommend having at least 2GB of RAM to allow the build to complete. diff --git a/doc/rest-api.md b/doc/rest-api.md index ab50c85f52c1..bee2aee82cb3 100644 --- a/doc/rest-api.md +++ b/doc/rest-api.md @@ -225,5 +225,5 @@ much like `/1.0/containers` will only show you instances of that type. ## API structure LXD has an auto-generated [Swagger](https://swagger.io/) specification describing its API endpoints. -The YAML version of this API specification can be found in [rest-api.yaml](https://github.com/lxc/lxd/blob/stable-4.0/doc/rest-api.yaml). -A convenient web rendering of it can be found here: [https://linuxcontainers.org/lxd/api/stable-4.0/](https://linuxcontainers.org/lxd/api/stable-4.0/) +The YAML version of this API specification can be found in [`rest-api.yaml`](https://github.com/canonical/lxd/blob/stable-4.0/doc/rest-api.yaml). +See {doc}`api` for a convenient web rendering of it. diff --git a/doc/rest-api.yaml b/doc/rest-api.yaml index c0b324190429..9899618161e7 100644 --- a/doc/rest-api.yaml +++ b/doc/rest-api.yaml @@ -39,7 +39,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api CertificatePut: description: CertificatePut represents the modifiable fields of a LXD certificate properties: @@ -74,7 +74,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api CertificatesPost: description: CertificatesPost represents the fields of a new LXD certificate properties: @@ -114,7 +114,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Cluster: properties: enabled: @@ -136,7 +136,7 @@ definitions: x-go-name: ServerName title: Cluster represents high-level information about a LXD cluster. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterCertificatePut: description: ClusterCertificatePut represents the certificate and key pair for all members in a LXD Cluster @@ -152,7 +152,7 @@ definitions: type: string x-go-name: ClusterCertificateKey type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterGroup: properties: description: @@ -176,7 +176,7 @@ definitions: x-go-name: Name title: ClusterGroup represents a cluster group. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterGroupPost: properties: name: @@ -186,7 +186,7 @@ definitions: x-go-name: Name title: ClusterGroupPost represents the fields required to rename a cluster group. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterGroupPut: properties: description: @@ -205,7 +205,7 @@ definitions: x-go-name: Members title: ClusterGroupPut represents the modifiable fields of a cluster group. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterGroupsPost: properties: description: @@ -229,7 +229,7 @@ definitions: x-go-name: Name title: ClusterGroupsPost represents the fields available for a new cluster group. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMember: properties: architecture: @@ -299,7 +299,7 @@ definitions: x-go-name: URL title: ClusterMember represents the a LXD node in the cluster. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMemberConfigKey: description: |- The Value field is empty when getting clustering information with GET @@ -335,7 +335,7 @@ definitions: ClusterMemberConfigKey represents a single config key that a new member of the cluster is required to provide when joining. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMemberJoinToken: properties: addresses: @@ -364,7 +364,7 @@ definitions: title: ClusterMemberJoinToken represents the fields contained within an encoded cluster member join token. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMemberPost: properties: server_name: @@ -374,7 +374,7 @@ definitions: x-go-name: ServerName title: ClusterMemberPost represents the fields required to rename a LXD node. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMemberPut: description: ClusterMemberPut represents the the modifiable fields of a LXD cluster member @@ -415,7 +415,7 @@ definitions: type: array x-go-name: Roles type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMemberStatePost: properties: action: @@ -427,7 +427,7 @@ definitions: title: ClusterMemberStatePost represents the fields required to evacuate a cluster member. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterMembersPost: properties: server_name: @@ -438,7 +438,7 @@ definitions: title: ClusterMembersPost represents the fields required to request a join token to add a member to the cluster. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ClusterPut: description: |- ClusterPut represents the fields required to bootstrap or join a LXD @@ -482,7 +482,7 @@ definitions: type: string x-go-name: ServerName type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Event: description: Event represents an event entry (over websocket) properties: @@ -516,7 +516,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Image: description: Image represents a LXD image properties: @@ -613,7 +613,7 @@ definitions: type: string x-go-name: UploadedAt type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageAlias: description: ImageAlias represents an alias from the alias list of a LXD image properties: @@ -628,7 +628,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageAliasesEntry: description: ImageAliasesEntry represents a LXD image alias properties: @@ -653,7 +653,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageAliasesEntryPost: description: ImageAliasesEntryPost represents the required fields to rename a LXD image alias @@ -664,7 +664,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageAliasesEntryPut: description: ImageAliasesEntryPut represents the modifiable fields of a LXD image alias @@ -680,7 +680,7 @@ definitions: type: string x-go-name: Target type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageAliasesPost: description: ImageAliasesPost represents a new LXD image alias properties: @@ -705,7 +705,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageExportPost: description: ImageExportPost represents the fields required to export a LXD image properties: @@ -731,7 +731,7 @@ definitions: type: string x-go-name: Target type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageMetadata: description: ImageMetadata represents LXD image metadata (used in image tarball) properties: @@ -769,7 +769,7 @@ definitions: type: object x-go-name: Templates type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageMetadataTemplate: description: ImageMetadataTemplate represents a template entry in image metadata (used in image tarball) @@ -800,7 +800,7 @@ definitions: type: array x-go-name: When type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImagePut: description: ImagePut represents the modifiable fields of a LXD image properties: @@ -840,7 +840,7 @@ definitions: type: boolean x-go-name: Public type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImageSource: description: ImageSource represents the source of a LXD image properties: @@ -866,11 +866,11 @@ definitions: x-go-name: Protocol server: description: URL of the source server - example: https://images.linuxcontainers.org + example: https://images.lxd.canonical.com type: string x-go-name: Server type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImagesPost: description: ImagesPost represents the fields available for a new LXD image properties: @@ -931,7 +931,7 @@ definitions: source: $ref: '#/definitions/ImagesPostSource' type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ImagesPostSource: description: ImagesPostSource represents the source of a new LXD image properties: @@ -982,7 +982,7 @@ definitions: x-go-name: Secret server: description: URL of the source server - example: https://images.linuxcontainers.org + example: https://images.lxd.canonical.com type: string x-go-name: Server type: @@ -996,7 +996,7 @@ definitions: type: string x-go-name: URL type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Instance: properties: architecture: @@ -1115,7 +1115,7 @@ definitions: x-go-name: Type title: Instance represents a LXD instance. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceBackup: properties: container_only: @@ -1153,7 +1153,7 @@ definitions: x-go-name: OptimizedStorage title: InstanceBackup represents a LXD instance backup. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceBackupPost: properties: name: @@ -1164,7 +1164,7 @@ definitions: title: InstanceBackupPost represents the fields available for the renaming of a instance backup. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceBackupsPost: properties: compression_algorithm: @@ -1202,7 +1202,7 @@ definitions: title: InstanceBackupsPost represents the fields available for a new LXD instance backup. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceConsolePost: properties: height: @@ -1224,7 +1224,7 @@ definitions: x-go-name: Width title: InstanceConsolePost represents a LXD instance console request. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceExecPost: properties: command: @@ -1290,7 +1290,7 @@ definitions: x-go-name: Width title: InstanceExecPost represents a LXD instance exec request. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceFull: properties: architecture: @@ -1424,7 +1424,7 @@ definitions: title: InstanceFull is a combination of Instance, InstanceBackup, InstanceState and InstanceSnapshot. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstancePost: properties: container_only: @@ -1467,7 +1467,7 @@ definitions: $ref: '#/definitions/InstancePostTarget' title: InstancePost represents the fields required to rename/move a LXD instance. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstancePostTarget: properties: certificate: @@ -1491,7 +1491,7 @@ definitions: x-go-name: Websockets title: InstancePostTarget represents the migration target host and operation. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstancePut: properties: architecture: @@ -1550,7 +1550,7 @@ definitions: x-go-name: Stateful title: InstancePut represents the modifiable fields of a LXD instance. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceSnapshot: properties: architecture: @@ -1649,7 +1649,7 @@ definitions: x-go-name: Stateful title: InstanceSnapshot represents a LXD instance snapshot. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceSnapshotPost: properties: live: @@ -1672,7 +1672,7 @@ definitions: title: InstanceSnapshotPost represents the fields required to rename/move a LXD instance snapshot. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceSnapshotPut: properties: expires_at: @@ -1684,7 +1684,7 @@ definitions: title: InstanceSnapshotPut represents the modifiable fields of a LXD instance snapshot. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceSnapshotsPost: properties: expires_at: @@ -1706,7 +1706,7 @@ definitions: title: InstanceSnapshotsPost represents the fields available for a new LXD instance snapshot. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceSource: properties: alias: @@ -1802,7 +1802,7 @@ definitions: x-go-name: Websockets server: description: Remote server URL (for remote images) - example: https://images.linuxcontainers.org + example: https://images.lxd.canonical.com type: string x-go-name: Server source: @@ -1817,7 +1817,7 @@ definitions: x-go-name: Type title: InstanceSource represents the creation source for a new instance. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceState: properties: cpu: @@ -1857,7 +1857,7 @@ definitions: $ref: '#/definitions/StatusCode' title: InstanceState represents a LXD instance's state. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStateCPU: properties: usage: @@ -1869,7 +1869,7 @@ definitions: title: InstanceStateCPU represents the cpu information section of a LXD instance's state. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStateDisk: properties: usage: @@ -1881,7 +1881,7 @@ definitions: title: InstanceStateDisk represents the disk information section of a LXD instance's state. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStateMemory: properties: swap_usage: @@ -1911,7 +1911,7 @@ definitions: title: InstanceStateMemory represents the memory information section of a LXD instance's state. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStateNetwork: properties: addresses: @@ -1951,7 +1951,7 @@ definitions: title: InstanceStateNetwork represents the network information section of a LXD instance's state. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStateNetworkAddress: description: |- InstanceStateNetworkAddress represents a network address as part of the network section of a LXD @@ -1978,7 +1978,7 @@ definitions: type: string x-go-name: Scope type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStateNetworkCounters: description: |- InstanceStateNetworkCounters represents packet counters as part of the network section of a LXD @@ -2033,7 +2033,7 @@ definitions: type: integer x-go-name: PacketsSent type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceStatePut: properties: action: @@ -2059,12 +2059,12 @@ definitions: x-go-name: Timeout title: InstanceStatePut represents the modifiable fields of a LXD instance's state. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstanceType: title: InstanceType represents the type if instance being returned or requested via the API. type: string - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstancesPost: properties: architecture: @@ -2137,14 +2137,14 @@ definitions: $ref: '#/definitions/InstanceType' title: InstancesPost represents the fields available for a new LXD instance. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api InstancesPut: properties: state: $ref: '#/definitions/InstanceStatePut' title: InstancesPut represents the fields available for a mass update. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Network: description: Network represents a LXD network properties: @@ -2209,7 +2209,7 @@ definitions: type: array x-go-name: UsedBy type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkACL: properties: config: @@ -2255,7 +2255,7 @@ definitions: x-go-name: UsedBy title: NetworkACL used for displaying an ACL. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkACLPost: properties: name: @@ -2265,7 +2265,7 @@ definitions: x-go-name: Name title: NetworkACLPost used for renaming an ACL. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkACLPut: properties: config: @@ -2295,7 +2295,7 @@ definitions: x-go-name: Ingress title: NetworkACLPut used for updating an ACL. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkACLRule: description: Refer to doc/network-acls.md for details. properties: @@ -2351,7 +2351,7 @@ definitions: x-go-name: State title: NetworkACLRule represents a single rule in an ACL ruleset. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkACLsPost: properties: config: @@ -2386,7 +2386,7 @@ definitions: x-go-name: Name title: NetworkACLsPost used for creating an ACL. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkForward: properties: config: @@ -2420,7 +2420,7 @@ definitions: x-go-name: Ports title: NetworkForward used for displaying an network address forward. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkForwardPort: description: NetworkForwardPort represents a port specification in a network address forward @@ -2451,7 +2451,7 @@ definitions: type: string x-go-name: TargetPort type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkForwardPut: description: NetworkForwardPut represents the modifiable fields of a LXD network address forward @@ -2476,7 +2476,7 @@ definitions: type: array x-go-name: Ports type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkForwardsPost: description: NetworkForwardsPost represents the fields of a new LXD network address forward @@ -2506,7 +2506,7 @@ definitions: type: array x-go-name: Ports type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkLease: description: NetworkLease represents a DHCP lease properties: @@ -2536,7 +2536,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkPeer: properties: config: @@ -2588,7 +2588,7 @@ definitions: x-go-name: UsedBy title: NetworkPeer used for displaying a LXD network peering. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkPeerPut: description: NetworkPeerPut represents the modifiable fields of a LXD network peering @@ -2607,7 +2607,7 @@ definitions: type: string x-go-name: Description type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkPeersPost: description: NetworkPeersPost represents the fields of a new LXD network peering properties: @@ -2640,7 +2640,7 @@ definitions: type: string x-go-name: TargetProject type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkPost: description: NetworkPost represents the fields required to rename a LXD network properties: @@ -2650,7 +2650,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkPut: description: NetworkPut represents the modifiable fields of a LXD network properties: @@ -2670,7 +2670,7 @@ definitions: type: string x-go-name: Description type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkState: description: NetworkState represents the network state properties: @@ -2712,7 +2712,7 @@ definitions: vlan: $ref: '#/definitions/NetworkStateVLAN' type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkStateAddress: description: NetworkStateAddress represents a network address properties: @@ -2737,7 +2737,7 @@ definitions: type: string x-go-name: Scope type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkStateBond: description: NetworkStateBond represents bond specific state properties: @@ -2784,7 +2784,7 @@ definitions: type: integer x-go-name: UpDelay type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkStateBridge: description: NetworkStateBridge represents bridge specific state properties: @@ -2825,7 +2825,7 @@ definitions: type: boolean x-go-name: VLANFiltering type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkStateCounters: description: NetworkStateCounters represents packet counters properties: @@ -2854,7 +2854,7 @@ definitions: type: integer x-go-name: PacketsSent type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkStateOVN: description: NetworkStateOVN represents OVN specific state properties: @@ -2863,7 +2863,7 @@ definitions: type: string x-go-name: Chassis type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkStateVLAN: description: NetworkStateVLAN represents VLAN specific state properties: @@ -2879,7 +2879,7 @@ definitions: type: integer x-go-name: VID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZone: properties: config: @@ -2912,7 +2912,7 @@ definitions: x-go-name: UsedBy title: NetworkZone represents a network zone (DNS). type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZonePut: description: NetworkZonePut represents the modifiable fields of a LXD network zone @@ -2931,7 +2931,7 @@ definitions: type: string x-go-name: Description type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZoneRecord: properties: config: @@ -2960,7 +2960,7 @@ definitions: x-go-name: Name title: NetworkZoneRecord represents a network zone (DNS) record. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZoneRecordEntry: description: NetworkZoneRecordEntry represents the fields in a record entry properties: @@ -2981,7 +2981,7 @@ definitions: type: string x-go-name: Value type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZoneRecordPut: description: NetworkZoneRecordPut represents the modifiable fields of a LXD network zone record @@ -3006,7 +3006,7 @@ definitions: type: array x-go-name: Entries type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZoneRecordsPost: description: NetworkZoneRecordsPost represents the fields of a new LXD network zone record @@ -3036,7 +3036,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworkZonesPost: description: NetworkZonesPost represents the fields of a new LXD network zone properties: @@ -3059,7 +3059,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api NetworksPost: description: NetworksPost represents the fields of a new LXD network properties: @@ -3089,7 +3089,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Operation: description: Operation represents a LXD background operation properties: @@ -3175,7 +3175,7 @@ definitions: type: string x-go-name: UpdatedAt type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Profile: description: Profile represents a LXD profile properties: @@ -3227,7 +3227,7 @@ definitions: type: array x-go-name: UsedBy type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProfilePost: description: ProfilePost represents the fields required to rename a LXD profile properties: @@ -3237,7 +3237,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProfilePut: description: ProfilePut represents the modifiable fields of a LXD profile properties: @@ -3273,7 +3273,7 @@ definitions: type: object x-go-name: Devices type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProfilesPost: description: ProfilesPost represents the fields of a new LXD profile properties: @@ -3314,7 +3314,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Project: description: Project represents a LXD project properties: @@ -3352,7 +3352,7 @@ definitions: type: array x-go-name: UsedBy type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProjectPost: description: ProjectPost represents the fields required to rename a LXD project properties: @@ -3362,7 +3362,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProjectPut: description: ProjectPut represents the modifiable fields of a LXD project properties: @@ -3381,7 +3381,7 @@ definitions: type: string x-go-name: Description type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProjectState: description: ProjectState represents the current running state of a LXD project properties: @@ -3400,7 +3400,7 @@ definitions: type: object x-go-name: Resources type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProjectStateResource: description: ProjectStateResource represents the state of a particular resource in a LXD project @@ -3416,7 +3416,7 @@ definitions: format: int64 type: integer type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ProjectsPost: description: ProjectsPost represents the fields of a new LXD project properties: @@ -3440,7 +3440,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Resources: description: Resources represents the system resources available for LXD properties: @@ -3461,7 +3461,7 @@ definitions: usb: $ref: '#/definitions/ResourcesUSB' type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesCPU: description: ResourcesCPU represents the cpu resources available on the system properties: @@ -3483,7 +3483,7 @@ definitions: type: integer x-go-name: Total type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesCPUCache: description: ResourcesCPUCache represents a CPU cache properties: @@ -3505,7 +3505,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesCPUCore: description: ResourcesCPUCore represents a CPU core on the system properties: @@ -3534,7 +3534,7 @@ definitions: type: array x-go-name: Threads type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesCPUSocket: description: ResourcesCPUSocket represents a CPU socket on the system properties: @@ -3585,7 +3585,7 @@ definitions: type: string x-go-name: Vendor type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesCPUThread: description: ResourcesCPUThread represents a CPU thread on the system properties: @@ -3618,7 +3618,7 @@ definitions: type: integer x-go-name: Thread type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesGPU: description: ResourcesGPU represents the GPU resources available on the system properties: @@ -3635,7 +3635,7 @@ definitions: type: integer x-go-name: Total type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesGPUCard: description: ResourcesGPUCard represents a GPU card on the system properties: @@ -3699,7 +3699,7 @@ definitions: type: string x-go-name: VendorID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesGPUCardDRM: description: ResourcesGPUCardDRM represents the Linux DRM configuration of the GPU @@ -3741,7 +3741,7 @@ definitions: type: string x-go-name: RenderName type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesGPUCardMdev: description: ResourcesGPUCardMdev represents the mediated devices configuration of the GPU @@ -3778,7 +3778,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesGPUCardNvidia: description: ResourcesGPUCardNvidia represents additional information for NVIDIA GPUs @@ -3824,7 +3824,7 @@ definitions: type: string x-go-name: UUID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesGPUCardSRIOV: description: ResourcesGPUCardSRIOV represents the SRIOV configuration of the GPU properties: @@ -3848,7 +3848,7 @@ definitions: type: array x-go-name: VFs type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesMemory: description: ResourcesMemory represents the memory resources available on the system @@ -3891,7 +3891,7 @@ definitions: type: integer x-go-name: Used type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesMemoryNode: description: ResourcesMemoryNode represents the node-specific memory resources available on the system @@ -3927,7 +3927,7 @@ definitions: type: integer x-go-name: Used type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesNetwork: description: ResourcesNetwork represents the network cards available on the system properties: @@ -3944,7 +3944,7 @@ definitions: type: integer x-go-name: Total type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesNetworkCard: description: ResourcesNetworkCard represents a network card on the system properties: @@ -4008,7 +4008,7 @@ definitions: type: string x-go-name: VendorID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesNetworkCardPort: description: ResourcesNetworkCardPort represents a network port on the system properties: @@ -4087,7 +4087,7 @@ definitions: type: string x-go-name: TransceiverType type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesNetworkCardPortInfiniband: description: ResourcesNetworkCardPortInfiniband represents the Linux Infiniband configuration for the port @@ -4123,7 +4123,7 @@ definitions: type: string x-go-name: VerbName type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesNetworkCardSRIOV: description: ResourcesNetworkCardSRIOV represents the SRIOV configuration of the network card @@ -4148,7 +4148,7 @@ definitions: type: array x-go-name: VFs type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesPCI: description: ResourcesPCI represents the PCI devices available on the system properties: @@ -4165,7 +4165,7 @@ definitions: type: integer x-go-name: Total type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesPCIDevice: description: ResourcesPCIDevice represents a PCI device properties: @@ -4217,7 +4217,7 @@ definitions: type: string x-go-name: VendorID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesStorage: description: ResourcesStorage represents the local storage properties: @@ -4234,7 +4234,7 @@ definitions: type: integer x-go-name: Total type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesStorageDisk: description: ResourcesStorageDisk represents a disk properties: @@ -4334,7 +4334,7 @@ definitions: type: string x-go-name: WWN type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesStorageDiskPartition: description: ResourcesStorageDiskPartition represents a partition on a disk properties: @@ -4366,7 +4366,7 @@ definitions: type: integer x-go-name: Size type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesStoragePool: description: ResourcesStoragePool represents the resources available to a given storage pool @@ -4376,7 +4376,7 @@ definitions: space: $ref: '#/definitions/ResourcesStoragePoolSpace' type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesStoragePoolInodes: description: ResourcesStoragePoolInodes represents the inodes available to a given storage pool @@ -4394,7 +4394,7 @@ definitions: type: integer x-go-name: Used type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesStoragePoolSpace: description: ResourcesStoragePoolSpace represents the space available to a given storage pool @@ -4412,7 +4412,7 @@ definitions: type: integer x-go-name: Used type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesSystem: description: ResourcesSystem represents the system properties: @@ -4464,7 +4464,7 @@ definitions: type: string x-go-name: Version type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesSystemChassis: description: ResourcesSystemChassis represents the system chassis properties: @@ -4489,7 +4489,7 @@ definitions: type: string x-go-name: Version type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesSystemFirmware: description: ResourcesSystemFirmware represents the system firmware properties: @@ -4509,7 +4509,7 @@ definitions: type: string x-go-name: Version type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesSystemMotherboard: description: ResourcesSystemMotherboard represents the motherboard properties: @@ -4534,7 +4534,7 @@ definitions: type: string x-go-name: Version type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesUSB: description: ResourcesUSB represents the USB devices available on the system properties: @@ -4551,7 +4551,7 @@ definitions: type: integer x-go-name: Total type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesUSBDevice: description: ResourcesUSBDevice represents a USB device properties: @@ -4600,7 +4600,7 @@ definitions: type: string x-go-name: VendorID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ResourcesUSBDeviceInterface: description: ResourcesUSBDeviceInterface represents a USB device interface properties: @@ -4643,7 +4643,7 @@ definitions: type: integer x-go-name: SubClassID type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Server: description: Server represents a LXD server properties: @@ -4707,7 +4707,7 @@ definitions: type: boolean x-go-name: Public type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ServerEnvironment: description: ServerEnvironment represents the read-only environment fields of a LXD server @@ -4846,7 +4846,7 @@ definitions: type: string x-go-name: StorageVersion type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ServerPut: description: ServerPut represents the modifiable fields of a LXD server configuration properties: @@ -4860,7 +4860,7 @@ definitions: type: object x-go-name: Config type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ServerStorageDriverInfo: description: ServerStorageDriverInfo represents the read-only info about a storage driver @@ -4878,7 +4878,7 @@ definitions: example: 0.8.4-1ubuntu11 type: string type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api ServerUntrusted: description: ServerUntrusted represents a LXD server for an untrusted client properties: @@ -4931,12 +4931,12 @@ definitions: type: boolean x-go-name: Public type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StatusCode: description: StatusCode represents a valid LXD operation and container status format: int64 type: integer - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StoragePool: properties: config: @@ -4991,7 +4991,7 @@ definitions: x-go-name: UsedBy title: StoragePool represents the fields of a LXD storage pool. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StoragePoolPut: properties: config: @@ -5010,7 +5010,7 @@ definitions: x-go-name: Description title: StoragePoolPut represents the modifiable fields of a LXD storage pool. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StoragePoolVolumeBackup: description: StoragePoolVolumeBackup represents a LXD volume backup properties: @@ -5043,7 +5043,7 @@ definitions: type: boolean x-go-name: VolumeOnly type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StoragePoolVolumeBackupPost: description: StoragePoolVolumeBackupPost represents the fields available for the renaming of a volume backup @@ -5054,7 +5054,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StoragePoolVolumeBackupsPost: description: StoragePoolVolumeBackupsPost represents the fields available for a new LXD volume backup @@ -5087,7 +5087,7 @@ definitions: type: boolean x-go-name: VolumeOnly type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StoragePoolsPost: description: StoragePoolsPost represents the fields of a new LXD storage pool properties: @@ -5116,7 +5116,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolume: properties: config: @@ -5168,7 +5168,7 @@ definitions: x-go-name: UsedBy title: StorageVolume represents the fields of a LXD storage volume. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumePost: description: StorageVolumePost represents the fields required to rename a LXD storage pool volume @@ -5201,7 +5201,7 @@ definitions: type: boolean x-go-name: VolumeOnly type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumePostTarget: description: StorageVolumePostTarget represents the migration target host and operation @@ -5225,7 +5225,7 @@ definitions: type: object x-go-name: Websockets type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumePut: description: StorageVolumePut represents the modifiable fields of a LXD storage volume @@ -5250,7 +5250,7 @@ definitions: type: string x-go-name: Restore type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeSnapshot: description: StorageVolumeSnapshot represents a LXD storage volume snapshot properties: @@ -5285,7 +5285,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeSnapshotPost: description: StorageVolumeSnapshotPost represents the fields required to rename/move a LXD storage volume snapshot @@ -5296,7 +5296,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeSnapshotPut: description: StorageVolumeSnapshotPut represents the modifiable fields of a LXD storage volume @@ -5313,7 +5313,7 @@ definitions: type: string x-go-name: ExpiresAt type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeSnapshotsPost: description: StorageVolumeSnapshotsPost represents the fields available for a new LXD storage volume snapshot @@ -5330,7 +5330,7 @@ definitions: type: string x-go-name: Name type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeSource: description: StorageVolumeSource represents the creation source for a new storage volume @@ -5389,14 +5389,14 @@ definitions: type: boolean x-go-name: VolumeOnly type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeState: description: StorageVolumeState represents the live state of the volume properties: usage: $ref: '#/definitions/StorageVolumeStateUsage' type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumeStateUsage: description: StorageVolumeStateUsage represents the disk usage of a volume properties: @@ -5407,7 +5407,7 @@ definitions: type: integer x-go-name: Used type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api StorageVolumesPost: description: StorageVolumesPost represents the fields of a new LXD storage pool volume @@ -5449,7 +5449,7 @@ definitions: type: string x-go-name: Type type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api Warning: properties: count: @@ -5512,7 +5512,7 @@ definitions: x-go-name: UUID title: Warning represents a warning entry. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api WarningPut: properties: status: @@ -5522,12 +5522,12 @@ definitions: x-go-name: Status title: WarningPut represents the modifiable fields of a warning. type: object - x-go-package: github.com/lxc/lxd/shared/api + x-go-package: github.com/canonical/lxd/shared/api info: contact: - email: lxc-devel@lists.linuxcontainers.org + email: lxd@lists.canonical.com name: LXD upstream - url: https://github.com/lxc/lxd + url: https://github.com/canonical/lxd description: |- This is the REST API used by all LXD clients. Internal endpoints aren't included in this documentation. diff --git a/doc/security.md b/doc/security.md index b118ea4dd459..8cade5b1fb5b 100644 --- a/doc/security.md +++ b/doc/security.md @@ -8,7 +8,7 @@ See the following sections for detailed information. -If you discover a security issue, see the [LXD security policy](https://github.com/lxc/lxd/blob/master/SECURITY.md) for information on how to report the issue. +If you discover a security issue, see the [LXD security policy](https://github.com/canonical/lxd/blob/main/SECURITY.md) for information on how to report the issue. ## Supported versions diff --git a/fuidshift/main.go b/fuidshift/main.go index 5c24a90686e6..5e9110213f2c 100644 --- a/fuidshift/main.go +++ b/fuidshift/main.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/shared/version" ) type cmdGlobal struct { diff --git a/fuidshift/main_shift.go b/fuidshift/main_shift.go index bcab6faf36ea..cda970480fab 100644 --- a/fuidshift/main_shift.go +++ b/fuidshift/main_shift.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/idmap" + "github.com/canonical/lxd/shared/idmap" ) type cmdShift struct { diff --git a/go.mod b/go.mod index 406dce595777..0806f0308816 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/lxc/lxd +module github.com/canonical/lxd go 1.17 diff --git a/lxc-to-lxd/config.go b/lxc-to-lxd/config.go index ce4f76328732..89fc4cebc0bf 100644 --- a/lxc-to-lxd/config.go +++ b/lxc-to-lxd/config.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) var checkedKeys = []string{ diff --git a/lxc-to-lxd/main.go b/lxc-to-lxd/main.go index 5f20fdb4fb9a..fc73b3001869 100644 --- a/lxc-to-lxd/main.go +++ b/lxc-to-lxd/main.go @@ -47,7 +47,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/shared/version" ) type cmdGlobal struct { diff --git a/lxc-to-lxd/main_migrate.go b/lxc-to-lxd/main_migrate.go index 6e8c68b9f172..6f526479760f 100644 --- a/lxc-to-lxd/main_migrate.go +++ b/lxc-to-lxd/main_migrate.go @@ -11,12 +11,12 @@ import ( "github.com/spf13/cobra" liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/osarch" ) type cmdMigrate struct { diff --git a/lxc-to-lxd/main_netcat.go b/lxc-to-lxd/main_netcat.go index db21bed71acb..e1a515ef3109 100644 --- a/lxc-to-lxd/main_netcat.go +++ b/lxc-to-lxd/main_netcat.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/eagain" + "github.com/canonical/lxd/shared/eagain" ) type cmdNetcat struct { diff --git a/lxc-to-lxd/transfer.go b/lxc-to-lxd/transfer.go index 98878a731027..95606dc83293 100644 --- a/lxc-to-lxd/transfer.go +++ b/lxc-to-lxd/transfer.go @@ -12,9 +12,9 @@ import ( "github.com/gorilla/websocket" "github.com/pborman/uuid" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/shared" ) // Send an rsync stream of a path over a websocket diff --git a/lxc-to-lxd/utils.go b/lxc-to-lxd/utils.go index 53655492510e..0b4a8da1a58c 100644 --- a/lxc-to-lxd/utils.go +++ b/lxc-to-lxd/utils.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/migration" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/migration" ) func transferRootfs(dst lxd.ContainerServer, op lxd.Operation, rootfs string, rsyncArgs string) error { diff --git a/lxc/action.go b/lxc/action.go index 53100f6b856b..4e3bfb48c25c 100644 --- a/lxc/action.go +++ b/lxc/action.go @@ -7,12 +7,12 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) // Start diff --git a/lxc/alias.go b/lxc/alias.go index 16ce0bbd02ab..3d549c67a7ff 100644 --- a/lxc/alias.go +++ b/lxc/alias.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/utils" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/utils" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdAlias struct { diff --git a/lxc/cluster.go b/lxc/cluster.go index 01e1b6f6c2eb..c0a414ca7d2c 100644 --- a/lxc/cluster.go +++ b/lxc/cluster.go @@ -12,12 +12,12 @@ import ( "github.com/spf13/cobra" yaml "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdCluster struct { diff --git a/lxc/config.go b/lxc/config.go index 3f52922a282c..ce280f4db67f 100644 --- a/lxc/config.go +++ b/lxc/config.go @@ -9,12 +9,12 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdConfig struct { diff --git a/lxc/config/cert.go b/lxc/config/cert.go index 42ccf8312af6..2527d31b3547 100644 --- a/lxc/config/cert.go +++ b/lxc/config/cert.go @@ -1,7 +1,7 @@ package config import ( - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // HasClientCertificate will return true if a client certificate has already been generated diff --git a/lxc/config/default.go b/lxc/config/default.go index b16af972c5af..30954885597e 100644 --- a/lxc/config/default.go +++ b/lxc/config/default.go @@ -7,9 +7,9 @@ var LocalRemote = Remote{ Public: false, } -// ImagesRemote is the community image server (over simplestreams) +// ImagesRemote is the main image server (over simplestreams). var ImagesRemote = Remote{ - Addr: "https://images.linuxcontainers.org", + Addr: "https://images.lxd.canonical.com", Public: true, Protocol: "simplestreams", } @@ -30,19 +30,40 @@ var UbuntuDailyRemote = Remote{ Protocol: "simplestreams", } +// UbuntuMinimalRemote is the Ubuntu minimal image server (over simplestreams). +var UbuntuMinimalRemote = Remote{ + Addr: "https://cloud-images.ubuntu.com/minimal/releases/", + Static: true, + Public: true, + Protocol: "simplestreams", +} + +// UbuntuMinimalDailyRemote is the Ubuntu daily minimal image server (over simplestreams). +var UbuntuMinimalDailyRemote = Remote{ + Addr: "https://cloud-images.ubuntu.com/minimal/daily/", + Static: true, + Public: true, + Protocol: "simplestreams", +} + // StaticRemotes is the list of remotes which can't be removed var StaticRemotes = map[string]Remote{ - "local": LocalRemote, - "ubuntu": UbuntuRemote, - "ubuntu-daily": UbuntuDailyRemote, + "images": ImagesRemote, + "local": LocalRemote, + "ubuntu": UbuntuRemote, + "ubuntu-daily": UbuntuDailyRemote, + "ubuntu-minimal": UbuntuMinimalRemote, + "ubuntu-minimal-daily": UbuntuMinimalDailyRemote, } // DefaultRemotes is the list of default remotes var DefaultRemotes = map[string]Remote{ - "images": ImagesRemote, - "local": LocalRemote, - "ubuntu": UbuntuRemote, - "ubuntu-daily": UbuntuDailyRemote, + "images": ImagesRemote, + "local": LocalRemote, + "ubuntu": UbuntuRemote, + "ubuntu-daily": UbuntuDailyRemote, + "ubuntu-minimal": UbuntuMinimalRemote, + "ubuntu-minimal-daily": UbuntuMinimalDailyRemote, } // DefaultConfig is the default configuration diff --git a/lxc/config/file.go b/lxc/config/file.go index df23a5ba83c4..4af1cd82ca0f 100644 --- a/lxc/config/file.go +++ b/lxc/config/file.go @@ -8,7 +8,7 @@ import ( "gopkg.in/yaml.v2" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // LoadConfig reads the configuration from the config path; if the path does diff --git a/lxc/config/remote.go b/lxc/config/remote.go index 92ad7bac1d38..e3a31d466e7f 100644 --- a/lxc/config/remote.go +++ b/lxc/config/remote.go @@ -15,8 +15,8 @@ import ( "gopkg.in/macaroon-bakery.v2/httpbakery" "gopkg.in/macaroon-bakery.v2/httpbakery/form" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" ) // Remote holds details for communication with a remote daemon diff --git a/lxc/config_device.go b/lxc/config_device.go index d50f6f9c86a9..76a9abb4f9b9 100644 --- a/lxc/config_device.go +++ b/lxc/config_device.go @@ -7,8 +7,8 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdConfigDevice struct { diff --git a/lxc/config_metadata.go b/lxc/config_metadata.go index 1af5b4d5930e..b7694f7995eb 100644 --- a/lxc/config_metadata.go +++ b/lxc/config_metadata.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdConfigMetadata struct { diff --git a/lxc/config_template.go b/lxc/config_template.go index 9e9538a8f197..b1a338f9452e 100644 --- a/lxc/config_template.go +++ b/lxc/config_template.go @@ -9,11 +9,11 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdConfigTemplate struct { diff --git a/lxc/config_trust.go b/lxc/config_trust.go index 03fc6c96d475..cbc17c72e96b 100644 --- a/lxc/config_trust.go +++ b/lxc/config_trust.go @@ -9,11 +9,11 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdConfigTrust struct { diff --git a/lxc/console.go b/lxc/console.go index bdeabb1cf2d1..6e1cba257f0d 100644 --- a/lxc/console.go +++ b/lxc/console.go @@ -13,13 +13,13 @@ import ( "github.com/gorilla/websocket" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/termios" ) type cmdConsole struct { diff --git a/lxc/console_unix.go b/lxc/console_unix.go index 54301f4bcf95..3386da2bd492 100644 --- a/lxc/console_unix.go +++ b/lxc/console_unix.go @@ -11,7 +11,7 @@ import ( "github.com/gorilla/websocket" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) func (c *cmdConsole) controlSocketHandler(control *websocket.Conn) { diff --git a/lxc/copy.go b/lxc/copy.go index 3931627dbcb5..e9b9f2b18391 100644 --- a/lxc/copy.go +++ b/lxc/copy.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdCopy struct { diff --git a/lxc/delete.go b/lxc/delete.go index e47f51d44e20..0555240a103f 100644 --- a/lxc/delete.go +++ b/lxc/delete.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdDelete struct { diff --git a/lxc/exec.go b/lxc/exec.go index ab100276de68..b0d7654325bf 100644 --- a/lxc/exec.go +++ b/lxc/exec.go @@ -12,12 +12,12 @@ import ( "github.com/gorilla/websocket" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/termios" ) type cmdExec struct { diff --git a/lxc/exec_unix.go b/lxc/exec_unix.go index 6bbf8de89f38..c5617d78be68 100644 --- a/lxc/exec_unix.go +++ b/lxc/exec_unix.go @@ -10,8 +10,8 @@ import ( "github.com/gorilla/websocket" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) func (c *cmdExec) getTERM() (string, bool) { diff --git a/lxc/exec_windows.go b/lxc/exec_windows.go index 849b82d7298c..f9f8276068e7 100644 --- a/lxc/exec_windows.go +++ b/lxc/exec_windows.go @@ -11,8 +11,8 @@ import ( "github.com/gorilla/websocket" "golang.org/x/sys/windows" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // Windows doesn't process ANSI sequences natively, so we wrap diff --git a/lxc/export.go b/lxc/export.go index b80774c77b70..bf1285dfce36 100644 --- a/lxc/export.go +++ b/lxc/export.go @@ -9,12 +9,12 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdExport struct { diff --git a/lxc/file.go b/lxc/file.go index e22cdd04bb98..f6cb3beeca49 100644 --- a/lxc/file.go +++ b/lxc/file.go @@ -14,15 +14,15 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/termios" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/termios" + "github.com/canonical/lxd/shared/units" ) // DirMode represents the file mode for creating dirs on `lxc file pull/push` diff --git a/lxc/image.go b/lxc/image.go index 0ff2e1223aec..82c03b81028f 100644 --- a/lxc/image.go +++ b/lxc/image.go @@ -13,13 +13,13 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type imageColumn struct { diff --git a/lxc/image_alias.go b/lxc/image_alias.go index 07ae48f3da22..59fda0fc32b7 100644 --- a/lxc/image_alias.go +++ b/lxc/image_alias.go @@ -7,10 +7,10 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdImageAlias struct { diff --git a/lxc/import.go b/lxc/import.go index e2563d840b4e..062c5a3716f3 100644 --- a/lxc/import.go +++ b/lxc/import.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) type cmdImport struct { diff --git a/lxc/info.go b/lxc/info.go index fe9a6fc403c9..9d0f76c84476 100644 --- a/lxc/info.go +++ b/lxc/info.go @@ -10,13 +10,13 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/units" ) type cmdInfo struct { diff --git a/lxc/init.go b/lxc/init.go index d5928a83619e..ccb170324e94 100644 --- a/lxc/init.go +++ b/lxc/init.go @@ -10,13 +10,13 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdInit struct { diff --git a/lxc/launch.go b/lxc/launch.go index cd0b3c653dc3..b2d641f09276 100644 --- a/lxc/launch.go +++ b/lxc/launch.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdLaunch struct { diff --git a/lxc/list.go b/lxc/list.go index 93518af384e9..71159c0849b6 100644 --- a/lxc/list.go +++ b/lxc/list.go @@ -10,15 +10,15 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/units" ) type column struct { diff --git a/lxc/list_test.go b/lxc/list_test.go index 24e06fc2b51a..c25d9c6caa11 100644 --- a/lxc/list_test.go +++ b/lxc/list_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) func TestDotPrefixMatch(t *testing.T) { diff --git a/lxc/main.go b/lxc/main.go index d8b3ee28b110..b6449023d26b 100644 --- a/lxc/main.go +++ b/lxc/main.go @@ -9,14 +9,14 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/shared" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/shared" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/version" ) type cmdGlobal struct { diff --git a/lxc/main_aliases.go b/lxc/main_aliases.go index 12af0e3764ac..06247a22c026 100644 --- a/lxc/main_aliases.go +++ b/lxc/main_aliases.go @@ -11,9 +11,9 @@ import ( "strconv" "strings" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/i18n" ) var numberedArgRegex = regexp.MustCompile(`@ARG(\d+)@`) diff --git a/lxc/main_test.go b/lxc/main_test.go index 6c686874744c..73b1d51fceed 100644 --- a/lxc/main_test.go +++ b/lxc/main_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lxc/lxd/lxc/config" + "github.com/canonical/lxd/lxc/config" ) type aliasTestcase struct { diff --git a/lxc/manpage.go b/lxc/manpage.go index 3f2964b31ca4..862fa6ce5f72 100644 --- a/lxc/manpage.go +++ b/lxc/manpage.go @@ -4,9 +4,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/cobra/doc" - "github.com/lxc/lxd/shared" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/shared" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdManpage struct { diff --git a/lxc/monitor.go b/lxc/monitor.go index 8bfe80738558..dfbf929d9504 100644 --- a/lxc/monitor.go +++ b/lxc/monitor.go @@ -8,12 +8,12 @@ import ( "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/logging" ) type cmdMonitor struct { diff --git a/lxc/move.go b/lxc/move.go index 589847fa2d2a..63b90eb40ede 100644 --- a/lxc/move.go +++ b/lxc/move.go @@ -5,11 +5,11 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" "github.com/pkg/errors" ) diff --git a/lxc/network.go b/lxc/network.go index 4d75c0c8380c..927877378112 100644 --- a/lxc/network.go +++ b/lxc/network.go @@ -10,13 +10,13 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" + "github.com/canonical/lxd/shared/units" ) type cmdNetwork struct { diff --git a/lxc/operation.go b/lxc/operation.go index 6fe2be845f53..db408522289c 100644 --- a/lxc/operation.go +++ b/lxc/operation.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxc/utils" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/lxc/utils" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdOperation struct { diff --git a/lxc/profile.go b/lxc/profile.go index 930f0ba46375..02044dcd93a3 100644 --- a/lxc/profile.go +++ b/lxc/profile.go @@ -10,12 +10,12 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdProfile struct { diff --git a/lxc/project.go b/lxc/project.go index 549c86332bee..faff21597b45 100644 --- a/lxc/project.go +++ b/lxc/project.go @@ -10,12 +10,12 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type cmdProject struct { diff --git a/lxc/publish.go b/lxc/publish.go index 190137eeac57..e6a4a1afe831 100644 --- a/lxc/publish.go +++ b/lxc/publish.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) type cmdPublish struct { diff --git a/lxc/query.go b/lxc/query.go index cedd9e04138e..9290f63c894b 100644 --- a/lxc/query.go +++ b/lxc/query.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdQuery struct { diff --git a/lxc/remote.go b/lxc/remote.go index 8faf04ef7dae..fa3b13a07020 100644 --- a/lxc/remote.go +++ b/lxc/remote.go @@ -13,13 +13,13 @@ import ( "github.com/spf13/cobra" "golang.org/x/term" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdRemote struct { diff --git a/lxc/rename.go b/lxc/rename.go index dee6b151c9fe..30f587ce445e 100644 --- a/lxc/rename.go +++ b/lxc/rename.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdRename struct { diff --git a/lxc/restore.go b/lxc/restore.go index d735cddbe898..80f48b202859 100644 --- a/lxc/restore.go +++ b/lxc/restore.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" ) type cmdRestore struct { diff --git a/lxc/snapshot.go b/lxc/snapshot.go index 5ec5bfb2b719..bbde7aa6c245 100644 --- a/lxc/snapshot.go +++ b/lxc/snapshot.go @@ -3,10 +3,10 @@ package main import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" "fmt" "strings" diff --git a/lxc/storage.go b/lxc/storage.go index fcb45db8a255..52f67200f0c4 100644 --- a/lxc/storage.go +++ b/lxc/storage.go @@ -11,13 +11,13 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" + "github.com/canonical/lxd/shared/units" ) type cmdStorage struct { diff --git a/lxc/storage_volume.go b/lxc/storage_volume.go index 404b24b1449b..4c0a87f4059b 100644 --- a/lxc/storage_volume.go +++ b/lxc/storage_volume.go @@ -12,13 +12,13 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type volumeColumn struct { diff --git a/lxc/utils.go b/lxc/utils.go index d079cbaa6a62..2c5e5ae9e68d 100644 --- a/lxc/utils.go +++ b/lxc/utils.go @@ -10,10 +10,10 @@ import ( "github.com/fvbommel/sortorder" "github.com/pkg/errors" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/termios" ) type stringList [][]string diff --git a/lxc/utils/cancel.go b/lxc/utils/cancel.go index 5c86a49828eb..2cd9bbbe2037 100644 --- a/lxc/utils/cancel.go +++ b/lxc/utils/cancel.go @@ -6,8 +6,8 @@ import ( "os/signal" "time" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/i18n" ) // CancelableWait waits for an operation and cancel it on SIGINT/SIGTERM diff --git a/lxc/utils/progress.go b/lxc/utils/progress.go index 9b7ef1892d87..e73194e80b93 100644 --- a/lxc/utils/progress.go +++ b/lxc/utils/progress.go @@ -7,9 +7,9 @@ import ( "sync" "time" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/termios" ) // ProgressRenderer tracks the progress information diff --git a/lxc/utils/table.go b/lxc/utils/table.go index 4cf9ae50c3d8..9a9e68f3606c 100644 --- a/lxc/utils/table.go +++ b/lxc/utils/table.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "github.com/lxc/lxd/shared/i18n" + "github.com/canonical/lxd/shared/i18n" "github.com/olekukonko/tablewriter" "gopkg.in/yaml.v2" ) diff --git a/lxc/utils_test.go b/lxc/utils_test.go index f8ad029e7327..6db6a99998c0 100644 --- a/lxc/utils_test.go +++ b/lxc/utils_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) type utilsTestSuite struct { diff --git a/lxc/version.go b/lxc/version.go index e0128c40e076..50721b382d6d 100644 --- a/lxc/version.go +++ b/lxc/version.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/i18n" - "github.com/lxc/lxd/shared/version" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/i18n" + "github.com/canonical/lxd/shared/version" ) type cmdVersion struct { diff --git a/lxd-agent/api.go b/lxd-agent/api.go index 33ed7d9722a0..46fb8b3e9fcf 100644 --- a/lxd-agent/api.go +++ b/lxd-agent/api.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/lxc/lxd/lxd/response" + "github.com/canonical/lxd/lxd/response" ) // APIEndpoint represents a URL in our API. diff --git a/lxd-agent/api_1.0.go b/lxd-agent/api_1.0.go index ccae95060f07..177d5cdabe95 100644 --- a/lxd-agent/api_1.0.go +++ b/lxd-agent/api_1.0.go @@ -4,10 +4,10 @@ import ( "net/http" "os" - "github.com/lxc/lxd/lxd/response" - lxdshared "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/response" + lxdshared "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var api10Cmd = APIEndpoint{ diff --git a/lxd-agent/daemon.go b/lxd-agent/daemon.go index 9b4844a8008f..d30c6c1d9cc5 100644 --- a/lxd-agent/daemon.go +++ b/lxd-agent/daemon.go @@ -1,7 +1,7 @@ package main import ( - "github.com/lxc/lxd/lxd/events" + "github.com/canonical/lxd/lxd/events" ) // A Daemon can respond to requests from a shared client. diff --git a/lxd-agent/devlxd.go b/lxd-agent/devlxd.go index c04d7b52824d..988721052ce0 100644 --- a/lxd-agent/devlxd.go +++ b/lxd-agent/devlxd.go @@ -10,12 +10,12 @@ import ( "path/filepath" "strings" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" ) // DevLxdServer creates an http.Server capable of handling requests against the diff --git a/lxd-agent/events.go b/lxd-agent/events.go index 24336fcd0f40..ef1a0c74181e 100644 --- a/lxd-agent/events.go +++ b/lxd-agent/events.go @@ -5,9 +5,9 @@ import ( "net/http" "strings" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) var eventsCmd = APIEndpoint{ diff --git a/lxd-agent/exec.go b/lxd-agent/exec.go index 206fe0c58b08..c55074d1ce31 100644 --- a/lxd-agent/exec.go +++ b/lxd-agent/exec.go @@ -18,14 +18,14 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/netutils" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/netutils" ) const execWSControl = -1 diff --git a/lxd-agent/file.go b/lxd-agent/file.go index 19a5cd00e1c2..79dda089723d 100644 --- a/lxd-agent/file.go +++ b/lxd-agent/file.go @@ -10,8 +10,8 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" ) var fileCmd = APIEndpoint{ diff --git a/lxd-agent/main.go b/lxd-agent/main.go index c6c750482f66..e89a4af1034a 100644 --- a/lxd-agent/main.go +++ b/lxd-agent/main.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/shared/version" ) type cmdGlobal struct { diff --git a/lxd-agent/main_agent.go b/lxd-agent/main_agent.go index ddfb39f2ba59..d315560be4f8 100644 --- a/lxd-agent/main_agent.go +++ b/lxd-agent/main_agent.go @@ -16,12 +16,12 @@ import ( "github.com/spf13/cobra" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/lxd/vsock" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/lxd/vsock" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) type cmdAgent struct { diff --git a/lxd-agent/network.go b/lxd-agent/network.go index e01849376479..56de95f0d2b8 100644 --- a/lxd-agent/network.go +++ b/lxd-agent/network.go @@ -6,8 +6,8 @@ import ( "sync" "time" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // A variation of the standard tls.Listener that supports atomically swapping diff --git a/lxd-agent/operations.go b/lxd-agent/operations.go index 3c8f033f1317..aff59ba13817 100644 --- a/lxd-agent/operations.go +++ b/lxd-agent/operations.go @@ -8,11 +8,11 @@ import ( "github.com/gorilla/mux" "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) var operationCmd = APIEndpoint{ diff --git a/lxd-agent/server.go b/lxd-agent/server.go index 4ba471ca04d0..fac40701d1b7 100644 --- a/lxd-agent/server.go +++ b/lxd-agent/server.go @@ -11,10 +11,10 @@ import ( "github.com/gorilla/mux" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) func restServer(tlsConfig *tls.Config, cert *x509.Certificate, debug bool, d *Daemon) *http.Server { diff --git a/lxd-agent/state.go b/lxd-agent/state.go index ff8292e720a3..850d938b387c 100644 --- a/lxd-agent/state.go +++ b/lxd-agent/state.go @@ -8,9 +8,9 @@ import ( "strconv" "strings" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) var stateCmd = APIEndpoint{ diff --git a/lxd-agent/templates.go b/lxd-agent/templates.go index 8e49788a4ddc..7db0f76f3c34 100644 --- a/lxd-agent/templates.go +++ b/lxd-agent/templates.go @@ -10,8 +10,8 @@ import ( "github.com/pkg/errors" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) func templatesApply(path string) ([]string, error) { diff --git a/lxd-benchmark/benchmark/benchmark.go b/lxd-benchmark/benchmark/benchmark.go index 2d96f6fdb860..4be2873f47b3 100644 --- a/lxd-benchmark/benchmark/benchmark.go +++ b/lxd-benchmark/benchmark/benchmark.go @@ -6,10 +6,10 @@ import ( "sync" "time" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/config" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/config" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) const userConfigKey = "user.lxd-benchmark" diff --git a/lxd-benchmark/benchmark/operation.go b/lxd-benchmark/benchmark/operation.go index b4f4f3cea7b9..2a0f466e504a 100644 --- a/lxd-benchmark/benchmark/operation.go +++ b/lxd-benchmark/benchmark/operation.go @@ -1,8 +1,8 @@ package benchmark import ( - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" ) func createContainer(c lxd.ContainerServer, fingerprint string, name string, privileged bool) error { diff --git a/lxd-benchmark/main.go b/lxd-benchmark/main.go index 4aac4b90fcf7..16ff0ab651ca 100644 --- a/lxd-benchmark/main.go +++ b/lxd-benchmark/main.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd-benchmark/benchmark" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd-benchmark/benchmark" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/version" ) type cmdGlobal struct { @@ -88,8 +88,8 @@ func main() { app.Example = ` # Spawn 20 Ubuntu containers in batches of 4 lxd-benchmark launch --count 20 --parallel 4 - # Create 50 Alpine containers in batches of 10 - lxd-benchmark init --count 50 --parallel 10 images:alpine/edge + # Create 50 Ubuntu Minimal 22.04 containers in batches of 10 + lxd-benchmark init --count 50 --parallel 10 ubuntu-minimal:22.04 # Delete all test containers using dynamic batch size lxd-benchmark delete` diff --git a/lxd-benchmark/main_delete.go b/lxd-benchmark/main_delete.go index c9c12f177274..991fef0743d3 100644 --- a/lxd-benchmark/main_delete.go +++ b/lxd-benchmark/main_delete.go @@ -3,7 +3,7 @@ package main import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd-benchmark/benchmark" + "github.com/canonical/lxd/lxd-benchmark/benchmark" ) type cmdDelete struct { diff --git a/lxd-benchmark/main_init.go b/lxd-benchmark/main_init.go index 7e2068b71d35..2cddb76b3a8d 100644 --- a/lxd-benchmark/main_init.go +++ b/lxd-benchmark/main_init.go @@ -3,7 +3,7 @@ package main import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd-benchmark/benchmark" + "github.com/canonical/lxd/lxd-benchmark/benchmark" ) type cmdInit struct { diff --git a/lxd-benchmark/main_launch.go b/lxd-benchmark/main_launch.go index 1753879279e9..44c0a999f7c4 100644 --- a/lxd-benchmark/main_launch.go +++ b/lxd-benchmark/main_launch.go @@ -3,7 +3,7 @@ package main import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd-benchmark/benchmark" + "github.com/canonical/lxd/lxd-benchmark/benchmark" ) type cmdLaunch struct { diff --git a/lxd-benchmark/main_start.go b/lxd-benchmark/main_start.go index c1cc0e3d5891..1f510296d827 100644 --- a/lxd-benchmark/main_start.go +++ b/lxd-benchmark/main_start.go @@ -3,7 +3,7 @@ package main import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd-benchmark/benchmark" + "github.com/canonical/lxd/lxd-benchmark/benchmark" ) type cmdStart struct { diff --git a/lxd-benchmark/main_stop.go b/lxd-benchmark/main_stop.go index 056e0e179c9d..5b2c93d8737f 100644 --- a/lxd-benchmark/main_stop.go +++ b/lxd-benchmark/main_stop.go @@ -3,7 +3,7 @@ package main import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd-benchmark/benchmark" + "github.com/canonical/lxd/lxd-benchmark/benchmark" ) type cmdStop struct { diff --git a/lxd-p2c/main.go b/lxd-p2c/main.go index a26f8b9ce7c8..df7253eb59ab 100644 --- a/lxd-p2c/main.go +++ b/lxd-p2c/main.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/shared/version" ) type cmdGlobal struct { diff --git a/lxd-p2c/main_migrate.go b/lxd-p2c/main_migrate.go index 50b2da07ae45..dfd28839e047 100644 --- a/lxd-p2c/main_migrate.go +++ b/lxd-p2c/main_migrate.go @@ -13,9 +13,9 @@ import ( "github.com/spf13/cobra" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/osarch" ) type cmdMigrate struct { diff --git a/lxd-p2c/main_netcat.go b/lxd-p2c/main_netcat.go index db21bed71acb..e1a515ef3109 100644 --- a/lxd-p2c/main_netcat.go +++ b/lxd-p2c/main_netcat.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared/eagain" + "github.com/canonical/lxd/shared/eagain" ) type cmdNetcat struct { diff --git a/lxd-p2c/transfer.go b/lxd-p2c/transfer.go index f3811225c6d8..67150e932b03 100644 --- a/lxd-p2c/transfer.go +++ b/lxd-p2c/transfer.go @@ -12,9 +12,9 @@ import ( "github.com/gorilla/websocket" "github.com/pborman/uuid" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/shared" ) // Send an rsync stream of a path over a websocket diff --git a/lxd-p2c/utils.go b/lxd-p2c/utils.go index 5b410451b778..b9a5c1f62682 100644 --- a/lxd-p2c/utils.go +++ b/lxd-p2c/utils.go @@ -11,11 +11,11 @@ import ( "golang.org/x/sys/unix" "golang.org/x/term" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) func transferRootfs(dst lxd.ContainerServer, op lxd.Operation, rootfs string, rsyncArgs string) error { diff --git a/lxd/api.go b/lxd/api.go index df36293030c7..d9482d1a2775 100644 --- a/lxd/api.go +++ b/lxd/api.go @@ -7,14 +7,14 @@ import ( log "gopkg.in/inconshreveable/log15.v2" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/project" + lxdRequest "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared/logger" "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/project" - lxdRequest "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared/logger" ) // swagger:operation GET / server api_get diff --git a/lxd/api_1.0.go b/lxd/api_1.0.go index f3587edfc8c8..20eef6c2bb54 100644 --- a/lxd/api_1.0.go +++ b/lxd/api_1.0.go @@ -7,23 +7,23 @@ import ( "os" "strings" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/config" - "github.com/lxc/lxd/lxd/db" - instanceDrivers "github.com/lxc/lxd/lxd/instance/drivers" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/config" + "github.com/canonical/lxd/lxd/db" + instanceDrivers "github.com/canonical/lxd/lxd/instance/drivers" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" "github.com/pkg/errors" ) diff --git a/lxd/api_cluster.go b/lxd/api_cluster.go index fe329c7d919f..f0e79c9040bf 100644 --- a/lxd/api_cluster.go +++ b/lxd/api_cluster.go @@ -17,23 +17,23 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - clusterRequest "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + clusterRequest "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" ) var targetGroupPrefix = "@" diff --git a/lxd/api_cluster_test.go b/lxd/api_cluster_test.go index 90859fd3f46d..000d72514844 100644 --- a/lxd/api_cluster_test.go +++ b/lxd/api_cluster_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/api_internal.go b/lxd/api_internal.go index a436db80f87e..28033d018225 100644 --- a/lxd/api_internal.go +++ b/lxd/api_internal.go @@ -18,25 +18,25 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/node" - "github.com/lxc/lxd/lxd/db/query" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/node" + "github.com/canonical/lxd/lxd/db/query" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/units" ) var apiInternal = []APIEndpoint{ diff --git a/lxd/api_internal_recover.go b/lxd/api_internal_recover.go index f151ba330ae4..bde66d08bc4b 100644 --- a/lxd/api_internal_recover.go +++ b/lxd/api_internal_recover.go @@ -8,21 +8,21 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" ) // Define API endpoints for recover actions. diff --git a/lxd/api_internal_test.go b/lxd/api_internal_test.go index aedcae3c437b..48d67e95b79d 100644 --- a/lxd/api_internal_test.go +++ b/lxd/api_internal_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Test that an instance with a local root disk device just gets its pool property modified. diff --git a/lxd/api_networks_test.go b/lxd/api_networks_test.go index 4b71c4139b10..07cc338adf2a 100644 --- a/lxd/api_networks_test.go +++ b/lxd/api_networks_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/api_project.go b/lxd/api_project.go index 240ed4152beb..e0670e2d0a34 100644 --- a/lxd/api_project.go +++ b/lxd/api_project.go @@ -12,19 +12,19 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/operations" - projecthelpers "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/validate" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/operations" + projecthelpers "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/validate" + "github.com/canonical/lxd/shared/version" ) var projectFeatures = []string{"features.images", "features.profiles", "features.storage.volumes"} diff --git a/lxd/api_storage_pools_test.go b/lxd/api_storage_pools_test.go index 0e291a7be242..cc47f2fe5e84 100644 --- a/lxd/api_storage_pools_test.go +++ b/lxd/api_storage_pools_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/apparmor/apparmor.go b/lxd/apparmor/apparmor.go index 9d8ec55f469c..21e23f3b1285 100644 --- a/lxd/apparmor/apparmor.go +++ b/lxd/apparmor/apparmor.go @@ -11,9 +11,9 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/version" ) const ( diff --git a/lxd/apparmor/instance.go b/lxd/apparmor/instance.go index 6afe46684151..34dd585a6c76 100644 --- a/lxd/apparmor/instance.go +++ b/lxd/apparmor/instance.go @@ -7,12 +7,12 @@ import ( "path/filepath" "strings" - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // Internal copy of the instance interface. diff --git a/lxd/apparmor/instance_forkproxy.go b/lxd/apparmor/instance_forkproxy.go index 5518e53b2d30..04b778e5e920 100644 --- a/lxd/apparmor/instance_forkproxy.go +++ b/lxd/apparmor/instance_forkproxy.go @@ -8,11 +8,11 @@ import ( "strings" "text/template" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // Internal copy of the device interface. diff --git a/lxd/apparmor/network.go b/lxd/apparmor/network.go index e5b2698c796f..4b08a40f9787 100644 --- a/lxd/apparmor/network.go +++ b/lxd/apparmor/network.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "github.com/lxc/lxd/lxd/state" + "github.com/canonical/lxd/lxd/state" ) // Internal copy of the network interface. diff --git a/lxd/apparmor/network_dnsmasq.go b/lxd/apparmor/network_dnsmasq.go index bedf098395f5..66d400fe915d 100644 --- a/lxd/apparmor/network_dnsmasq.go +++ b/lxd/apparmor/network_dnsmasq.go @@ -5,8 +5,8 @@ import ( "strings" "text/template" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" ) var dnsmasqProfileTpl = template.Must(template.New("dnsmasqProfile").Parse(`#include diff --git a/lxd/apparmor/network_forkdns.go b/lxd/apparmor/network_forkdns.go index bc5dfecfc94f..1f3a6368c5c7 100644 --- a/lxd/apparmor/network_forkdns.go +++ b/lxd/apparmor/network_forkdns.go @@ -6,9 +6,9 @@ import ( "strings" "text/template" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) var forkdnsProfileTpl = template.Must(template.New("forkdnsProfile").Parse(`#include diff --git a/lxd/backup.go b/lxd/backup.go index 8f0c0bd3ee41..72e9cf08065e 100644 --- a/lxd/backup.go +++ b/lxd/backup.go @@ -13,26 +13,26 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/units" ) // Create a new backup. diff --git a/lxd/backup/backup_common.go b/lxd/backup/backup_common.go index 6b298bcdd215..5638fd066fd7 100644 --- a/lxd/backup/backup_common.go +++ b/lxd/backup/backup_common.go @@ -3,7 +3,7 @@ package backup import ( "time" - "github.com/lxc/lxd/lxd/state" + "github.com/canonical/lxd/lxd/state" ) // WorkingDirPrefix is used when temporary working directories are needed. diff --git a/lxd/backup/backup_config.go b/lxd/backup/backup_config.go index 7a9a43859b04..59dc8e2a511e 100644 --- a/lxd/backup/backup_config.go +++ b/lxd/backup/backup_config.go @@ -8,12 +8,12 @@ import ( "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/osarch" ) // Config represents the config of a backup that can be stored in a backup.yaml file (or embedded in index.yaml). diff --git a/lxd/backup/backup_info.go b/lxd/backup/backup_info.go index 1dd3aa90e827..dad7829f235e 100644 --- a/lxd/backup/backup_info.go +++ b/lxd/backup/backup_info.go @@ -7,7 +7,7 @@ import ( "github.com/pkg/errors" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Type indicates the type of backup. diff --git a/lxd/backup/backup_instance.go b/lxd/backup/backup_instance.go index 8eeb975a9293..1388222a88ca 100644 --- a/lxd/backup/backup_instance.go +++ b/lxd/backup/backup_instance.go @@ -5,12 +5,12 @@ import ( "strings" "time" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // Instance represents the backup relevant subset of a LXD instance. diff --git a/lxd/backup/backup_utils.go b/lxd/backup/backup_utils.go index 08dc35918cc5..1fd8842c02af 100644 --- a/lxd/backup/backup_utils.go +++ b/lxd/backup/backup_utils.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // TarReader rewinds backup file handle r and returns new tar reader and process cleanup function. diff --git a/lxd/certificates.go b/lxd/certificates.go index 11649244926c..37879bc1c9af 100644 --- a/lxd/certificates.go +++ b/lxd/certificates.go @@ -14,20 +14,20 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - clusterRequest "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + clusterRequest "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) type certificateCache struct { diff --git a/lxd/cgroup/abstraction.go b/lxd/cgroup/abstraction.go index 5a4752efad9d..b42a23c7d3e3 100644 --- a/lxd/cgroup/abstraction.go +++ b/lxd/cgroup/abstraction.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // CGroup represents the main cgroup abstraction. diff --git a/lxd/cgroup/file.go b/lxd/cgroup/file.go index e98fb8fcf8e6..e3efd4b01f46 100644 --- a/lxd/cgroup/file.go +++ b/lxd/cgroup/file.go @@ -6,7 +6,7 @@ import ( "path/filepath" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // NewFileReadWriter returns a CGroup instance using the filesystem as its backend. diff --git a/lxd/cgroup/init.go b/lxd/cgroup/init.go index cf519aab3afb..867ce8f0bf09 100644 --- a/lxd/cgroup/init.go +++ b/lxd/cgroup/init.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) var cgControllers = map[string]Backend{} diff --git a/lxd/cluster/config.go b/lxd/cluster/config.go index a63e8b715022..0046a4622ec1 100644 --- a/lxd/cluster/config.go +++ b/lxd/cluster/config.go @@ -11,9 +11,9 @@ import ( "github.com/pkg/errors" "golang.org/x/crypto/scrypt" - "github.com/lxc/lxd/lxd/config" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/config" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/shared/validate" ) // Config holds cluster-wide configuration values. diff --git a/lxd/cluster/config_test.go b/lxd/cluster/config_test.go index b0f6d9fe169e..7c26ff5d64bd 100644 --- a/lxd/cluster/config_test.go +++ b/lxd/cluster/config_test.go @@ -3,8 +3,8 @@ package cluster_test import ( "testing" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/cluster/connect.go b/lxd/cluster/connect.go index affd55ae291b..f0d8af99b55c 100644 --- a/lxd/cluster/connect.go +++ b/lxd/cluster/connect.go @@ -13,16 +13,16 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/client" - clusterRequest "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + clusterRequest "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) // ErrCertificateExists indicates that a certificate already exists. diff --git a/lxd/cluster/events.go b/lxd/cluster/events.go index cf900f4bdabd..2ae52f01dbc0 100644 --- a/lxd/cluster/events.go +++ b/lxd/cluster/events.go @@ -7,13 +7,13 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/endpoints" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/endpoints" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) var listeners = map[string]*lxd.EventListener{} diff --git a/lxd/cluster/gateway.go b/lxd/cluster/gateway.go index 6de4c4a7dd0b..376af806409a 100644 --- a/lxd/cluster/gateway.go +++ b/lxd/cluster/gateway.go @@ -22,11 +22,11 @@ import ( client "github.com/canonical/go-dqlite/client" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" "github.com/pkg/errors" ) diff --git a/lxd/cluster/gateway_export_test.go b/lxd/cluster/gateway_export_test.go index 03d246c0eff8..7bdf95650a11 100644 --- a/lxd/cluster/gateway_export_test.go +++ b/lxd/cluster/gateway_export_test.go @@ -1,8 +1,8 @@ package cluster import ( - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/shared" ) // IsLeader returns true if this node is the leader. diff --git a/lxd/cluster/gateway_test.go b/lxd/cluster/gateway_test.go index 5557bda2df68..6bfd29b9cc5f 100644 --- a/lxd/cluster/gateway_test.go +++ b/lxd/cluster/gateway_test.go @@ -12,10 +12,10 @@ import ( "testing" "github.com/canonical/go-dqlite/driver" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logging" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/cluster/heartbeat.go b/lxd/cluster/heartbeat.go index 146f09987d00..855098ccc23c 100644 --- a/lxd/cluster/heartbeat.go +++ b/lxd/cluster/heartbeat.go @@ -12,13 +12,13 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/cluster/heartbeat_test.go b/lxd/cluster/heartbeat_test.go index f85d79fc5b00..911416c7ba3a 100644 --- a/lxd/cluster/heartbeat_test.go +++ b/lxd/cluster/heartbeat_test.go @@ -9,12 +9,12 @@ import ( "time" "github.com/canonical/go-dqlite/driver" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/cluster/info.go b/lxd/cluster/info.go index 9832e4e8128e..0b5a5a45a670 100644 --- a/lxd/cluster/info.go +++ b/lxd/cluster/info.go @@ -7,10 +7,10 @@ import ( "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/cluster/membership.go b/lxd/cluster/membership.go index 0011ed35d1f9..7f323cd1b517 100644 --- a/lxd/cluster/membership.go +++ b/lxd/cluster/membership.go @@ -15,14 +15,14 @@ import ( "gopkg.in/inconshreveable/log15.v2" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" "github.com/pkg/errors" ) diff --git a/lxd/cluster/membership_test.go b/lxd/cluster/membership_test.go index f72f8db5badc..21b422650cbb 100644 --- a/lxd/cluster/membership_test.go +++ b/lxd/cluster/membership_test.go @@ -11,12 +11,12 @@ import ( "time" "github.com/canonical/go-dqlite/driver" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/cluster/migrate.go b/lxd/cluster/migrate.go index 91d3d2ad83a6..e9575a446baa 100644 --- a/lxd/cluster/migrate.go +++ b/lxd/cluster/migrate.go @@ -8,9 +8,9 @@ import ( "path/filepath" "strconv" + "github.com/canonical/lxd/lxd/cluster/raft" + "github.com/canonical/lxd/shared" "github.com/hashicorp/go-msgpack/codec" - "github.com/lxc/lxd/lxd/cluster/raft" - "github.com/lxc/lxd/shared" "github.com/pkg/errors" bolt "go.etcd.io/bbolt" ) diff --git a/lxd/cluster/migrate_test.go b/lxd/cluster/migrate_test.go index 4f1bd88d2fbb..6aaed8c60f44 100644 --- a/lxd/cluster/migrate_test.go +++ b/lxd/cluster/migrate_test.go @@ -9,8 +9,8 @@ import ( dqlite "github.com/canonical/go-dqlite" "github.com/canonical/go-dqlite/driver" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/cluster/notify.go b/lxd/cluster/notify.go index 660d3547e3d8..4c93f6d3472e 100644 --- a/lxd/cluster/notify.go +++ b/lxd/cluster/notify.go @@ -5,12 +5,12 @@ import ( "sync" "time" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/cluster/notify_test.go b/lxd/cluster/notify_test.go index 869877c49d84..885dabf96d1c 100644 --- a/lxd/cluster/notify_test.go +++ b/lxd/cluster/notify_test.go @@ -7,14 +7,14 @@ import ( "testing" "time" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/cluster/raft_test.go b/lxd/cluster/raft_test.go index 8fe5ab3e27ba..ea5f9bc3f248 100644 --- a/lxd/cluster/raft_test.go +++ b/lxd/cluster/raft_test.go @@ -8,9 +8,9 @@ import ( "github.com/canonical/go-dqlite/client" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // Set the cluster.https_address config key to the given address, and insert the diff --git a/lxd/cluster/recover.go b/lxd/cluster/recover.go index 838193522b5b..dcc8165c0d48 100644 --- a/lxd/cluster/recover.go +++ b/lxd/cluster/recover.go @@ -10,8 +10,8 @@ import ( dqlite "github.com/canonical/go-dqlite" client "github.com/canonical/go-dqlite/client" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" "github.com/pkg/errors" ) diff --git a/lxd/cluster/resolve.go b/lxd/cluster/resolve.go index 084fa9db2443..f0ca21708a71 100644 --- a/lxd/cluster/resolve.go +++ b/lxd/cluster/resolve.go @@ -3,7 +3,7 @@ package cluster import ( "fmt" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" ) // ResolveTarget is a convenience for handling the value ?targetNode query diff --git a/lxd/cluster/tls.go b/lxd/cluster/tls.go index f19faae3c7cf..ad02b5239202 100644 --- a/lxd/cluster/tls.go +++ b/lxd/cluster/tls.go @@ -6,10 +6,10 @@ import ( "fmt" "net/http" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // Return a TLS configuration suitable for establishing intra-member network connections using the server cert. diff --git a/lxd/cluster/upgrade.go b/lxd/cluster/upgrade.go index 721b4298d641..de54bdb62beb 100644 --- a/lxd/cluster/upgrade.go +++ b/lxd/cluster/upgrade.go @@ -12,11 +12,11 @@ import ( "gopkg.in/inconshreveable/log15.v2" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/cluster/upgrade_test.go b/lxd/cluster/upgrade_test.go index 0ca869fb267a..0dfd5eec9041 100644 --- a/lxd/cluster/upgrade_test.go +++ b/lxd/cluster/upgrade_test.go @@ -17,10 +17,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" ) // A node can unblock other nodes that were waiting for a cluster upgrade to diff --git a/lxd/config/map.go b/lxd/config/map.go index 9a13a134fb09..9958ec535a42 100644 --- a/lxd/config/map.go +++ b/lxd/config/map.go @@ -6,7 +6,7 @@ import ( "sort" "strconv" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Map is a structured map of config keys to config values. diff --git a/lxd/config/map_test.go b/lxd/config/map_test.go index 25363a155d03..6b83e07fb443 100644 --- a/lxd/config/map_test.go +++ b/lxd/config/map_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/lxc/lxd/lxd/config" + "github.com/canonical/lxd/lxd/config" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/config/safe.go b/lxd/config/safe.go index a342832b22a6..5ccc37e85678 100644 --- a/lxd/config/safe.go +++ b/lxd/config/safe.go @@ -5,7 +5,7 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) // SafeLoad is a wrapper around Load() that does not error when invalid keys diff --git a/lxd/config/safe_test.go b/lxd/config/safe_test.go index 92c79c6d6744..52f3d18922a2 100644 --- a/lxd/config/safe_test.go +++ b/lxd/config/safe_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/config" + "github.com/canonical/lxd/lxd/config" ) // If the givne values contain invalid keys, they are ignored. diff --git a/lxd/config/schema.go b/lxd/config/schema.go index a1bbc3edad14..6aba9d73f45c 100644 --- a/lxd/config/schema.go +++ b/lxd/config/schema.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Schema defines the available keys of a config Map, along with the types diff --git a/lxd/config/schema_test.go b/lxd/config/schema_test.go index b9a62760c470..e438f4df3a86 100644 --- a/lxd/config/schema_test.go +++ b/lxd/config/schema_test.go @@ -3,7 +3,7 @@ package config_test import ( "testing" - "github.com/lxc/lxd/lxd/config" + "github.com/canonical/lxd/lxd/config" "github.com/stretchr/testify/assert" ) diff --git a/lxd/config/validators_test.go b/lxd/config/validators_test.go index 44d6f3e07286..969de47eeb9c 100644 --- a/lxd/config/validators_test.go +++ b/lxd/config/validators_test.go @@ -3,7 +3,7 @@ package config_test import ( "testing" - "github.com/lxc/lxd/lxd/config" + "github.com/canonical/lxd/lxd/config" "github.com/stretchr/testify/assert" ) diff --git a/lxd/daemon.go b/lxd/daemon.go index 38912c164342..341588c8aa0d 100644 --- a/lxd/daemon.go +++ b/lxd/daemon.go @@ -31,38 +31,38 @@ import ( "gopkg.in/macaroon-bakery.v2/bakery/identchecker" "gopkg.in/macaroon-bakery.v2/httpbakery" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/endpoints" - "github.com/lxc/lxd/lxd/events" - "github.com/lxc/lxd/lxd/firewall" - "github.com/lxc/lxd/lxd/fsmonitor" - devmonitor "github.com/lxc/lxd/lxd/fsmonitor" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/ucred" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/endpoints" + "github.com/canonical/lxd/lxd/events" + "github.com/canonical/lxd/lxd/firewall" + "github.com/canonical/lxd/lxd/fsmonitor" + devmonitor "github.com/canonical/lxd/lxd/fsmonitor" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/ucred" // Import instance/drivers without name so init() runs. - _ "github.com/lxc/lxd/lxd/instance/drivers" - instanceDrivers "github.com/lxc/lxd/lxd/instance/drivers" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/maas" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/seccomp" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + _ "github.com/canonical/lxd/lxd/instance/drivers" + instanceDrivers "github.com/canonical/lxd/lxd/instance/drivers" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/maas" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/seccomp" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // A Daemon can respond to requests from a shared client. diff --git a/lxd/daemon_config.go b/lxd/daemon_config.go index 57b6f04533a1..ad771b4c9d60 100644 --- a/lxd/daemon_config.go +++ b/lxd/daemon_config.go @@ -1,11 +1,11 @@ package main import ( - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" ) func daemonConfigRender(state *state.State) (map[string]interface{}, error) { diff --git a/lxd/daemon_images.go b/lxd/daemon_images.go index 432a814d404f..9cebb088bf45 100644 --- a/lxd/daemon_images.go +++ b/lxd/daemon_images.go @@ -12,21 +12,21 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/locking" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/locking" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/version" ) // ImageDownloadArgs used with ImageDownload. diff --git a/lxd/daemon_integration_test.go b/lxd/daemon_integration_test.go index 815db3afd319..6ae1ccc3de90 100644 --- a/lxd/daemon_integration_test.go +++ b/lxd/daemon_integration_test.go @@ -7,10 +7,10 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logging" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/daemon_storage.go b/lxd/daemon_storage.go index 6db3bda91fa6..dacd5d600cec 100644 --- a/lxd/daemon_storage.go +++ b/lxd/daemon_storage.go @@ -9,14 +9,14 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" ) func daemonStorageVolumesUnmount(s *state.State) error { diff --git a/lxd/db/backups.go b/lxd/db/backups.go index f5516380c771..e5cf2c247977 100644 --- a/lxd/db/backups.go +++ b/lxd/db/backups.go @@ -10,7 +10,7 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) // InstanceBackup is a value object holding all db-related details about an instance backup. diff --git a/lxd/db/certificates.go b/lxd/db/certificates.go index 8a650c0c7af1..17cc0abdcff7 100644 --- a/lxd/db/certificates.go +++ b/lxd/db/certificates.go @@ -6,8 +6,8 @@ package db import ( "fmt" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" "github.com/pkg/errors" ) diff --git a/lxd/db/certificates.mapper.go b/lxd/db/certificates.mapper.go index 8e85ae67b681..2df2e139278d 100644 --- a/lxd/db/certificates.mapper.go +++ b/lxd/db/certificates.mapper.go @@ -9,9 +9,9 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/certificates_test.go b/lxd/db/certificates_test.go index 478acfd7e98e..d58801bc234d 100644 --- a/lxd/db/certificates_test.go +++ b/lxd/db/certificates_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" ) func TestGetCertificate(t *testing.T) { diff --git a/lxd/db/cluster/constants.go b/lxd/db/cluster/constants.go index b417d8194628..480f6c714539 100644 --- a/lxd/db/cluster/constants.go +++ b/lxd/db/cluster/constants.go @@ -1,7 +1,7 @@ package cluster import ( - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/shared/version" ) // Numeric type codes identifying different kind of entities. diff --git a/lxd/db/cluster/open.go b/lxd/db/cluster/open.go index 347624f677f6..f863d3c341b0 100644 --- a/lxd/db/cluster/open.go +++ b/lxd/db/cluster/open.go @@ -7,13 +7,13 @@ import ( "sync/atomic" driver "github.com/canonical/go-dqlite/driver" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/db/schema" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/schema" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" "github.com/pkg/errors" ) diff --git a/lxd/db/cluster/open_test.go b/lxd/db/cluster/open_test.go index e2b3d2e1c3ef..16a27a2d16d9 100644 --- a/lxd/db/cluster/open_test.go +++ b/lxd/db/cluster/open_test.go @@ -8,10 +8,10 @@ import ( "path/filepath" "testing" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/cluster/query.go b/lxd/db/cluster/query.go index 16b7aedf9934..17602398934b 100644 --- a/lxd/db/cluster/query.go +++ b/lxd/db/cluster/query.go @@ -4,7 +4,7 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" ) // Update the schema and api_extensions columns of the row in the nodes table diff --git a/lxd/db/cluster/update.go b/lxd/db/cluster/update.go index 32acf0d8f59e..a7359bbdbe6c 100644 --- a/lxd/db/cluster/update.go +++ b/lxd/db/cluster/update.go @@ -7,11 +7,11 @@ import ( "strings" "time" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/db/schema" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/schema" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" "github.com/pkg/errors" ) diff --git a/lxd/db/cluster/update_test.go b/lxd/db/cluster/update_test.go index 548a5636bcab..4c44939ac498 100644 --- a/lxd/db/cluster/update_test.go +++ b/lxd/db/cluster/update_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/osarch" "github.com/mattn/go-sqlite3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/lxd/db/config.go b/lxd/db/config.go index 0c2d90e8ceac..029f73515572 100644 --- a/lxd/db/config.go +++ b/lxd/db/config.go @@ -3,7 +3,7 @@ package db -import "github.com/lxc/lxd/lxd/db/query" +import "github.com/canonical/lxd/lxd/db/query" // Code generation directives. // diff --git a/lxd/db/config.mapper.go b/lxd/db/config.mapper.go index 00cbd97434d5..0add03d4f91b 100644 --- a/lxd/db/config.mapper.go +++ b/lxd/db/config.mapper.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/config_test.go b/lxd/db/config_test.go index 0c09a61868c3..24193262b96b 100644 --- a/lxd/db/config_test.go +++ b/lxd/db/config_test.go @@ -6,7 +6,7 @@ package db_test import ( "testing" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/db.go b/lxd/db/db.go index a3f26f0ad6a2..680a5e4d2856 100644 --- a/lxd/db/db.go +++ b/lxd/db/db.go @@ -20,11 +20,11 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/node" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/node" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // Node mediates access to LXD's data stored in the node-local SQLite database. diff --git a/lxd/db/db_internal_test.go b/lxd/db/db_internal_test.go index 5b0c123d092f..b20de10a2891 100644 --- a/lxd/db/db_internal_test.go +++ b/lxd/db/db_internal_test.go @@ -10,9 +10,9 @@ import ( "github.com/stretchr/testify/suite" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) const fixtures string = ` diff --git a/lxd/db/db_test.go b/lxd/db/db_test.go index f604ed48f4d3..1483904b7a48 100644 --- a/lxd/db/db_test.go +++ b/lxd/db/db_test.go @@ -6,8 +6,8 @@ package db_test import ( "testing" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/devices.mapper.go b/lxd/db/devices.mapper.go index 9579ea31bdc8..107001ef5a35 100644 --- a/lxd/db/devices.mapper.go +++ b/lxd/db/devices.mapper.go @@ -9,8 +9,8 @@ import ( "fmt" "strings" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/generate/db.go b/lxd/db/generate/db.go index 171ec72f8772..8d83fad72cb4 100644 --- a/lxd/db/generate/db.go +++ b/lxd/db/generate/db.go @@ -5,9 +5,9 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd/db/generate/db" - "github.com/lxc/lxd/lxd/db/generate/file" - "github.com/lxc/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/lxd/db/generate/db" + "github.com/canonical/lxd/lxd/db/generate/file" + "github.com/canonical/lxd/lxd/db/generate/lex" ) // Return a new db command. diff --git a/lxd/db/generate/db/constants.go b/lxd/db/generate/db/constants.go index 8e03c606763c..eef3a16049ba 100644 --- a/lxd/db/generate/db/constants.go +++ b/lxd/db/generate/db/constants.go @@ -4,7 +4,7 @@ package db var Imports = []string{ "database/sql", "fmt", - "github.com/lxc/lxd/lxd/db/cluster", - "github.com/lxc/lxd/lxd/db/query", - "github.com/lxc/lxd/shared/api", + "github.com/canonical/lxd/lxd/db/cluster", + "github.com/canonical/lxd/lxd/db/query", + "github.com/canonical/lxd/shared/api", } diff --git a/lxd/db/generate/db/lex.go b/lxd/db/generate/db/lex.go index 7b435b651e09..c6c6cb60a2f1 100644 --- a/lxd/db/generate/db/lex.go +++ b/lxd/db/generate/db/lex.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/lxc/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/lxd/db/generate/lex" ) // Return the table name for the given database entity. diff --git a/lxd/db/generate/db/mapping.go b/lxd/db/generate/db/mapping.go index 3ec0324ff50b..646c921c7156 100644 --- a/lxd/db/generate/db/mapping.go +++ b/lxd/db/generate/db/mapping.go @@ -5,8 +5,8 @@ import ( "net/url" "strings" - "github.com/lxc/lxd/lxd/db/generate/lex" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/shared" ) // Mapping holds information for mapping database tables to a Go structure. diff --git a/lxd/db/generate/db/method.go b/lxd/db/generate/db/method.go index 810c06708961..dc372ae2f009 100644 --- a/lxd/db/generate/db/method.go +++ b/lxd/db/generate/db/method.go @@ -5,8 +5,8 @@ import ( "go/ast" "strings" - "github.com/lxc/lxd/lxd/db/generate/file" - "github.com/lxc/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/lxd/db/generate/file" + "github.com/canonical/lxd/lxd/db/generate/lex" ) // Method generates a code snippet for a particular database query method. diff --git a/lxd/db/generate/db/parse.go b/lxd/db/generate/db/parse.go index 551e60c8dce1..cb107003b4e1 100644 --- a/lxd/db/generate/db/parse.go +++ b/lxd/db/generate/db/parse.go @@ -10,8 +10,8 @@ import ( "sort" "strings" - "github.com/lxc/lxd/lxd/db/generate/lex" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/shared" ) // Packages returns the the AST packages in which to search for structs. diff --git a/lxd/db/generate/db/parse_test.go b/lxd/db/generate/db/parse_test.go index 2303cacacb9a..6405f30f9fc3 100644 --- a/lxd/db/generate/db/parse_test.go +++ b/lxd/db/generate/db/parse_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/db/generate/db" + "github.com/canonical/lxd/lxd/db/generate/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/generate/db/schema.go b/lxd/db/generate/db/schema.go index 63ff86046f7e..f10ed9989d43 100644 --- a/lxd/db/generate/db/schema.go +++ b/lxd/db/generate/db/schema.go @@ -3,8 +3,8 @@ package db import ( "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/node" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/node" ) // UpdateSchema updates the schema.go file of the cluster and node databases. diff --git a/lxd/db/generate/db/stmt.go b/lxd/db/generate/db/stmt.go index 1e02b4037159..698b4f648914 100644 --- a/lxd/db/generate/db/stmt.go +++ b/lxd/db/generate/db/stmt.go @@ -5,8 +5,8 @@ import ( "go/ast" "strings" - "github.com/lxc/lxd/lxd/db/generate/file" - "github.com/lxc/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/lxd/db/generate/file" + "github.com/canonical/lxd/lxd/db/generate/lex" ) // Stmt generates a particular database query statement. diff --git a/lxd/db/generate/lex/parse.go b/lxd/db/generate/lex/parse.go index e893eefbb7a1..38ac47c537d4 100644 --- a/lxd/db/generate/lex/parse.go +++ b/lxd/db/generate/lex/parse.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Parse runs the Go parser against the given package directory. diff --git a/lxd/db/generate/lex/parse_test.go b/lxd/db/generate/lex/parse_test.go index b59ae6e175d8..0526af1c5de4 100644 --- a/lxd/db/generate/lex/parse_test.go +++ b/lxd/db/generate/lex/parse_test.go @@ -5,7 +5,7 @@ import ( "runtime" "testing" - "github.com/lxc/lxd/lxd/db/generate/lex" + "github.com/canonical/lxd/lxd/db/generate/lex" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/images.go b/lxd/db/images.go index 79ceeb31ffb3..7bb4663fca69 100644 --- a/lxd/db/images.go +++ b/lxd/db/images.go @@ -11,10 +11,10 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/osarch" ) // Code generation directives. diff --git a/lxd/db/images.mapper.go b/lxd/db/images.mapper.go index 02c538ceea89..d1ac57217a9d 100644 --- a/lxd/db/images.mapper.go +++ b/lxd/db/images.mapper.go @@ -9,10 +9,10 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/images_test.go b/lxd/db/images_test.go index 344d7366980e..1e6d0c75b989 100644 --- a/lxd/db/images_test.go +++ b/lxd/db/images_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/instance_profiles.mapper.go b/lxd/db/instance_profiles.mapper.go index a85b4f4ca33c..8fbdc7ccaf88 100644 --- a/lxd/db/instance_profiles.mapper.go +++ b/lxd/db/instance_profiles.mapper.go @@ -8,9 +8,9 @@ package db import ( "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/instances.go b/lxd/db/instances.go index e7b675cf3d0f..1e2316237758 100644 --- a/lxd/db/instances.go +++ b/lxd/db/instances.go @@ -10,11 +10,11 @@ import ( "strings" "time" - "github.com/lxc/lxd/lxd/db/query" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/query" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" "github.com/pkg/errors" ) diff --git a/lxd/db/instances.mapper.go b/lxd/db/instances.mapper.go index 870d12ea8ce6..22fbc70f060a 100644 --- a/lxd/db/instances.mapper.go +++ b/lxd/db/instances.mapper.go @@ -9,10 +9,10 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/instances_test.go b/lxd/db/instances_test.go index 8a39d568acb2..699c5a10a1a8 100644 --- a/lxd/db/instances_test.go +++ b/lxd/db/instances_test.go @@ -8,14 +8,14 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/project" + "github.com/canonical/lxd/lxd/project" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared/api" ) func TestContainerList(t *testing.T) { diff --git a/lxd/db/legacy.go b/lxd/db/legacy.go index c91504f93756..44f0c9863fb4 100644 --- a/lxd/db/legacy.go +++ b/lxd/db/legacy.go @@ -6,7 +6,7 @@ package db import ( "database/sql" - "github.com/lxc/lxd/lxd/db/schema" + "github.com/canonical/lxd/lxd/db/schema" ) // LegacyPatch is a "database" update that performs non-database work. They diff --git a/lxd/db/migration.go b/lxd/db/migration.go index 0df5d18936bb..35d03bd1d356 100644 --- a/lxd/db/migration.go +++ b/lxd/db/migration.go @@ -8,9 +8,9 @@ import ( "fmt" "strings" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/db/migration_test.go b/lxd/db/migration_test.go index 3aebd8105ce1..656afd81299e 100644 --- a/lxd/db/migration_test.go +++ b/lxd/db/migration_test.go @@ -11,8 +11,8 @@ import ( "time" "github.com/canonical/go-dqlite/driver" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/networks.go b/lxd/db/networks.go index 97701e9c04e1..0ab7aeeb7a56 100644 --- a/lxd/db/networks.go +++ b/lxd/db/networks.go @@ -10,10 +10,10 @@ import ( "net/http" "strings" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) // GetNetworksLocalConfig returns a map associating each network name to its diff --git a/lxd/db/networks_test.go b/lxd/db/networks_test.go index ce5957be4f4c..8509f7018f25 100644 --- a/lxd/db/networks_test.go +++ b/lxd/db/networks_test.go @@ -6,7 +6,7 @@ package db_test import ( "testing" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/node.go b/lxd/db/node.go index 0a7416da583d..f4e8053cac71 100644 --- a/lxd/db/node.go +++ b/lxd/db/node.go @@ -11,13 +11,13 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" ) // ClusterRole represents the role of a member in a cluster. diff --git a/lxd/db/node/open.go b/lxd/db/node/open.go index b49bed19617e..9bd185e00ee4 100644 --- a/lxd/db/node/open.go +++ b/lxd/db/node/open.go @@ -5,9 +5,9 @@ import ( "fmt" "path/filepath" - "github.com/lxc/lxd/lxd/db/schema" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db/schema" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // Open the node-local database object. diff --git a/lxd/db/node/open_test.go b/lxd/db/node/open_test.go index 16104044287b..dd3aebabe2de 100644 --- a/lxd/db/node/open_test.go +++ b/lxd/db/node/open_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/lxc/lxd/lxd/db/node" + "github.com/canonical/lxd/lxd/db/node" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/node/update.go b/lxd/db/node/update.go index 762529cf9bed..03b7014ad6f2 100644 --- a/lxd/db/node/update.go +++ b/lxd/db/node/update.go @@ -10,11 +10,11 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/db/schema" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/schema" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/units" ) // Schema for the local database. diff --git a/lxd/db/node/update_test.go b/lxd/db/node/update_test.go index 6f204fb2913a..21984e69b417 100644 --- a/lxd/db/node/update_test.go +++ b/lxd/db/node/update_test.go @@ -4,9 +4,9 @@ import ( "database/sql" "testing" - "github.com/lxc/lxd/lxd/db/node" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/node" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/node_test.go b/lxd/db/node_test.go index f2fe6cbc06b5..666913fe62c4 100644 --- a/lxd/db/node_test.go +++ b/lxd/db/node_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/operations.go b/lxd/db/operations.go index 2521be648b2d..783b998072eb 100644 --- a/lxd/db/operations.go +++ b/lxd/db/operations.go @@ -4,7 +4,7 @@ package db import ( - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" ) //go:generate -command mapper lxd-generate db mapper -t operations.mapper.go diff --git a/lxd/db/operations.mapper.go b/lxd/db/operations.mapper.go index 237e08fbd00d..abd03d8b74e8 100644 --- a/lxd/db/operations.mapper.go +++ b/lxd/db/operations.mapper.go @@ -9,9 +9,9 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/operations_test.go b/lxd/db/operations_test.go index 71b223d3df7f..03d83c91b4be 100644 --- a/lxd/db/operations_test.go +++ b/lxd/db/operations_test.go @@ -6,7 +6,7 @@ package db_test import ( "testing" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/patches.go b/lxd/db/patches.go index 687dc2bf4966..6933e13f72fe 100644 --- a/lxd/db/patches.go +++ b/lxd/db/patches.go @@ -6,7 +6,7 @@ package db import ( "database/sql" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" ) // GetAppliedPatches returns the names of all patches currently applied on this node. diff --git a/lxd/db/profiles.go b/lxd/db/profiles.go index 357f1de281bb..2c9dbd3a49ec 100644 --- a/lxd/db/profiles.go +++ b/lxd/db/profiles.go @@ -6,8 +6,8 @@ package db import ( "fmt" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/shared/api" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/shared/api" "github.com/pkg/errors" ) diff --git a/lxd/db/profiles.mapper.go b/lxd/db/profiles.mapper.go index c174b9fce657..a8a2fc750ac8 100644 --- a/lxd/db/profiles.mapper.go +++ b/lxd/db/profiles.mapper.go @@ -9,10 +9,10 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/projects.go b/lxd/db/projects.go index 49aba3605a55..1c8f3e557202 100644 --- a/lxd/db/projects.go +++ b/lxd/db/projects.go @@ -9,9 +9,9 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // Code generation directives. diff --git a/lxd/db/projects.mapper.go b/lxd/db/projects.mapper.go index b9e825d3bb1e..885250a96a45 100644 --- a/lxd/db/projects.mapper.go +++ b/lxd/db/projects.mapper.go @@ -9,10 +9,10 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/projects_test.go b/lxd/db/projects_test.go index d0bd96563096..b5f53c5d82cb 100644 --- a/lxd/db/projects_test.go +++ b/lxd/db/projects_test.go @@ -6,7 +6,7 @@ package db_test import ( "testing" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/query/config_test.go b/lxd/db/query/config_test.go index d77026d172ff..182d15db1c77 100644 --- a/lxd/db/query/config_test.go +++ b/lxd/db/query/config_test.go @@ -4,7 +4,7 @@ import ( "database/sql" "testing" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/query/count_test.go b/lxd/db/query/count_test.go index 997dc44cd3fe..99f94f5c4ab2 100644 --- a/lxd/db/query/count_test.go +++ b/lxd/db/query/count_test.go @@ -5,7 +5,7 @@ import ( "strconv" "testing" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/query/dump_test.go b/lxd/db/query/dump_test.go index 3f6c4a676a35..28baaf67097b 100644 --- a/lxd/db/query/dump_test.go +++ b/lxd/db/query/dump_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/query/objects_test.go b/lxd/db/query/objects_test.go index 859c090dca84..d89737c807f1 100644 --- a/lxd/db/query/objects_test.go +++ b/lxd/db/query/objects_test.go @@ -4,7 +4,7 @@ import ( "database/sql" "testing" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/query/retry.go b/lxd/db/query/retry.go index b847ddb8c5c3..3bf4d81c121a 100644 --- a/lxd/db/query/retry.go +++ b/lxd/db/query/retry.go @@ -10,7 +10,7 @@ import ( "github.com/mattn/go-sqlite3" "github.com/pkg/errors" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) const maxRetries = 250 diff --git a/lxd/db/query/slices_test.go b/lxd/db/query/slices_test.go index 88877e8fa232..7023a8714c1d 100644 --- a/lxd/db/query/slices_test.go +++ b/lxd/db/query/slices_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" ) // Exercise possible failure modes. diff --git a/lxd/db/query/transaction.go b/lxd/db/query/transaction.go index beb1109b667d..07af9e017437 100644 --- a/lxd/db/query/transaction.go +++ b/lxd/db/query/transaction.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/db/query/transaction_test.go b/lxd/db/query/transaction_test.go index 8b73b15d135b..b946cb50e53b 100644 --- a/lxd/db/query/transaction_test.go +++ b/lxd/db/query/transaction_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" "github.com/stretchr/testify/assert" ) diff --git a/lxd/db/raft.go b/lxd/db/raft.go index f183a83aba34..a561c27526e7 100644 --- a/lxd/db/raft.go +++ b/lxd/db/raft.go @@ -7,7 +7,7 @@ import ( "fmt" "github.com/canonical/go-dqlite/client" - "github.com/lxc/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/query" "github.com/pkg/errors" ) diff --git a/lxd/db/raft_test.go b/lxd/db/raft_test.go index 6ef5a426bf43..0e30f3cef68d 100644 --- a/lxd/db/raft_test.go +++ b/lxd/db/raft_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" ) // Fetch all raft nodes. diff --git a/lxd/db/schema/query.go b/lxd/db/schema/query.go index f0e1eed8f0d4..359f23191b5f 100644 --- a/lxd/db/schema/query.go +++ b/lxd/db/schema/query.go @@ -6,8 +6,8 @@ import ( "io/ioutil" "os" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" "github.com/pkg/errors" ) diff --git a/lxd/db/schema/schema.go b/lxd/db/schema/schema.go index 2ada3d2c5b86..d8ade7b810cb 100644 --- a/lxd/db/schema/schema.go +++ b/lxd/db/schema/schema.go @@ -6,8 +6,8 @@ import ( "sort" "strings" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" "github.com/pkg/errors" ) diff --git a/lxd/db/schema/schema_test.go b/lxd/db/schema/schema_test.go index 752de4f14ed0..208b9ba28f15 100644 --- a/lxd/db/schema/schema_test.go +++ b/lxd/db/schema/schema_test.go @@ -10,9 +10,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/db/schema" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/db/schema" + "github.com/canonical/lxd/shared" ) // WriteTempFile creates a temp file with the specified content diff --git a/lxd/db/schema/update_test.go b/lxd/db/schema/update_test.go index 8e3449a02306..fdacbcc0c96b 100644 --- a/lxd/db/schema/update_test.go +++ b/lxd/db/schema/update_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db/schema" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/schema" + "github.com/canonical/lxd/shared" ) // A Go source file matching the given prefix is created in the calling diff --git a/lxd/db/snapshots.go b/lxd/db/snapshots.go index 2d1b63a2f5a3..aaea10aff36e 100644 --- a/lxd/db/snapshots.go +++ b/lxd/db/snapshots.go @@ -8,7 +8,7 @@ import ( "fmt" "time" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Code generation directives. diff --git a/lxd/db/snapshots.mapper.go b/lxd/db/snapshots.mapper.go index 47ab1fe083dd..3b47067f93ae 100644 --- a/lxd/db/snapshots.mapper.go +++ b/lxd/db/snapshots.mapper.go @@ -9,9 +9,9 @@ import ( "database/sql" "fmt" - "github.com/lxc/lxd/lxd/db/cluster" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/cluster" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared/api" ) var _ = api.ServerEnvironment{} diff --git a/lxd/db/snapshots_test.go b/lxd/db/snapshots_test.go index 42a71ae56d65..878eeaa5b2fa 100644 --- a/lxd/db/snapshots_test.go +++ b/lxd/db/snapshots_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance/instancetype" ) func TestGetInstanceSnapshots(t *testing.T) { diff --git a/lxd/db/storage_pools.go b/lxd/db/storage_pools.go index 19f23b1f69db..3581989eed70 100644 --- a/lxd/db/storage_pools.go +++ b/lxd/db/storage_pools.go @@ -11,9 +11,9 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // GetStoragePoolsLocalConfig returns a map associating each storage pool name to diff --git a/lxd/db/storage_pools_export_test.go b/lxd/db/storage_pools_export_test.go index e276f5ef9ecb..01421594c59b 100644 --- a/lxd/db/storage_pools_export_test.go +++ b/lxd/db/storage_pools_export_test.go @@ -3,7 +3,7 @@ package db -import "github.com/lxc/lxd/shared/api" +import "github.com/canonical/lxd/shared/api" func (c *Cluster) GetStoragePoolVolume(project string, volumeName string, volumeType int, poolID, nodeID int64) (int64, *api.StorageVolume, error) { return c.storagePoolVolumeGetType(project, volumeName, volumeType, poolID, nodeID) diff --git a/lxd/db/storage_pools_test.go b/lxd/db/storage_pools_test.go index cb6d12608011..6b771e89b9a2 100644 --- a/lxd/db/storage_pools_test.go +++ b/lxd/db/storage_pools_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/db/storage_volume_snapshots.go b/lxd/db/storage_volume_snapshots.go index 4bd8ef9f4c02..0dc92aebeab7 100644 --- a/lxd/db/storage_volume_snapshots.go +++ b/lxd/db/storage_volume_snapshots.go @@ -11,8 +11,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" ) // CreateStorageVolumeSnapshot creates a new storage volume snapshot attached to a given diff --git a/lxd/db/storage_volumes.go b/lxd/db/storage_volumes.go index 47622739107b..9cc5302b4297 100644 --- a/lxd/db/storage_volumes.go +++ b/lxd/db/storage_volumes.go @@ -9,10 +9,10 @@ import ( "strings" "time" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" "github.com/pkg/errors" ) diff --git a/lxd/db/storage_volumes_test.go b/lxd/db/storage_volumes_test.go index f13b94a9a3c7..d9735aa970ae 100644 --- a/lxd/db/storage_volumes_test.go +++ b/lxd/db/storage_volumes_test.go @@ -6,7 +6,7 @@ package db_test import ( "testing" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/device/config/device_runconfig.go b/lxd/device/config/device_runconfig.go index 7b1ae324956b..d0f450db97ff 100644 --- a/lxd/device/config/device_runconfig.go +++ b/lxd/device/config/device_runconfig.go @@ -1,6 +1,6 @@ package config -import "github.com/lxc/lxd/lxd/revert" +import "github.com/canonical/lxd/lxd/revert" // MountOwnerShiftNone do not use owner shifting. const MountOwnerShiftNone = "" diff --git a/lxd/device/device_common.go b/lxd/device/device_common.go index 072c562711fa..44e92ecefa51 100644 --- a/lxd/device/device_common.go +++ b/lxd/device/device_common.go @@ -3,12 +3,12 @@ package device import ( log "gopkg.in/inconshreveable/log15.v2" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) // deviceCommon represents the common struct for all devices. diff --git a/lxd/device/device_interface.go b/lxd/device/device_interface.go index a37428e5c29b..2c88547404ab 100644 --- a/lxd/device/device_interface.go +++ b/lxd/device/device_interface.go @@ -1,10 +1,10 @@ package device import ( - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/api" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/api" ) // VolatileSetter is a function that accepts one or more key/value strings to save into the LXD diff --git a/lxd/device/device_load.go b/lxd/device/device_load.go index 3051badcdd2a..8e1ff4736788 100644 --- a/lxd/device/device_load.go +++ b/lxd/device/device_load.go @@ -5,10 +5,10 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/device/nictype" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/state" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device/nictype" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/state" ) // newByType returns a new unitialised device based of the type indicated by the project and device config. diff --git a/lxd/device/device_utils_disk.go b/lxd/device/device_utils_disk.go index ba180d88ba4c..cab589fe4824 100644 --- a/lxd/device/device_utils_disk.go +++ b/lxd/device/device_utils_disk.go @@ -11,13 +11,13 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/revert" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/subprocess" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/revert" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/subprocess" ) // BlockFsDetect detects the type of block device. diff --git a/lxd/device/device_utils_generic.go b/lxd/device/device_utils_generic.go index 66f170179a35..03be28dcb232 100644 --- a/lxd/device/device_utils_generic.go +++ b/lxd/device/device_utils_generic.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // deviceJoinPath joins together prefix and text delimited by a "." for device path generation. diff --git a/lxd/device/device_utils_gpu.go b/lxd/device/device_utils_gpu.go index c2452cca8050..2d7fb98ac3f2 100644 --- a/lxd/device/device_utils_gpu.go +++ b/lxd/device/device_utils_gpu.go @@ -1,7 +1,7 @@ package device import ( - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/shared/validate" "strings" ) diff --git a/lxd/device/device_utils_infiniband.go b/lxd/device/device_utils_infiniband.go index 7d9f3adf2b93..8583567549a5 100644 --- a/lxd/device/device_utils_infiniband.go +++ b/lxd/device/device_utils_infiniband.go @@ -5,9 +5,9 @@ import ( "net" "strings" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/api" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/api" ) // IBDevPrefix Infiniband devices prefix. diff --git a/lxd/device/device_utils_instance.go b/lxd/device/device_utils_instance.go index f9bff3c229b6..9bb6a7c4c178 100644 --- a/lxd/device/device_utils_instance.go +++ b/lxd/device/device_utils_instance.go @@ -1,7 +1,7 @@ package device import ( - "github.com/lxc/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/instancetype" ) // instanceSupported is a helper function to check instance type is supported for validation. diff --git a/lxd/device/device_utils_network.go b/lxd/device/device_utils_network.go index b4333376b703..e2a2dd0c8e6b 100644 --- a/lxd/device/device_utils_network.go +++ b/lxd/device/device_utils_network.go @@ -13,17 +13,17 @@ import ( "github.com/mdlayher/ndp" "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - pcidev "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/units" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + pcidev "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/units" ) // Instances can be started in parallel, so lock the creation of VLANs. diff --git a/lxd/device/device_utils_proxy.go b/lxd/device/device_utils_proxy.go index 48ce5db4d92d..2cb165101b7e 100644 --- a/lxd/device/device_utils_proxy.go +++ b/lxd/device/device_utils_proxy.go @@ -5,10 +5,10 @@ import ( "net" "strings" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" ) // ProxyParseAddr validates a proxy address and parses it into its constituent parts. diff --git a/lxd/device/device_utils_unix.go b/lxd/device/device_utils_unix.go index 756f8b33dcd0..501c8de9d185 100644 --- a/lxd/device/device_utils_unix.go +++ b/lxd/device/device_utils_unix.go @@ -10,12 +10,12 @@ import ( "golang.org/x/sys/unix" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/state" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/state" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" ) // unixDefaultMode default mode to create unix devices with if not specified in device config. diff --git a/lxd/device/device_utils_unix_events.go b/lxd/device/device_utils_unix_events.go index a64383c28beb..4870864124ef 100644 --- a/lxd/device/device_utils_unix_events.go +++ b/lxd/device/device_utils_unix_events.go @@ -8,11 +8,11 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // UnixEvent represents the properties of a Unix device inotify event. diff --git a/lxd/device/device_utils_unix_hotplug_events.go b/lxd/device/device_utils_unix_hotplug_events.go index ce0e44631d6f..3376117f6ed6 100644 --- a/lxd/device/device_utils_unix_hotplug_events.go +++ b/lxd/device/device_utils_unix_hotplug_events.go @@ -8,10 +8,10 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/logger" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/logger" ) // UnixHotplugEvent represents the properties of a Unix hotplug device uevent. diff --git a/lxd/device/device_utils_usb_events.go b/lxd/device/device_utils_usb_events.go index 26ee8f584f3a..69eab5319f99 100644 --- a/lxd/device/device_utils_usb_events.go +++ b/lxd/device/device_utils_usb_events.go @@ -9,10 +9,10 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/logger" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/logger" ) // USBEvent represents the properties of a USB device uevent. diff --git a/lxd/device/disk.go b/lxd/device/disk.go index 007543400da6..26a3b45f3868 100644 --- a/lxd/device/disk.go +++ b/lxd/device/disk.go @@ -14,22 +14,22 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) // Special disk "source" value used for generating a VM cloud-init config ISO. diff --git a/lxd/device/gpu.go b/lxd/device/gpu.go index 72540f32aab4..b29aec4a632a 100644 --- a/lxd/device/gpu.go +++ b/lxd/device/gpu.go @@ -1,6 +1,6 @@ package device -import "github.com/lxc/lxd/shared/validate" +import "github.com/canonical/lxd/shared/validate" func gpuValidationRules(requiredFields []string, optionalFields []string) map[string]func(value string) error { // Define a set of default validators for each field name. diff --git a/lxd/device/gpu_mdev.go b/lxd/device/gpu_mdev.go index 554a1f5609fe..f4beb96a9387 100644 --- a/lxd/device/gpu_mdev.go +++ b/lxd/device/gpu_mdev.go @@ -10,13 +10,13 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - pcidev "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + pcidev "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" ) type gpuMdev struct { diff --git a/lxd/device/gpu_mig.go b/lxd/device/gpu_mig.go index 00de4fb1f318..f512518ec119 100644 --- a/lxd/device/gpu_mig.go +++ b/lxd/device/gpu_mig.go @@ -4,13 +4,13 @@ import ( "fmt" "strings" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - pcidev "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + pcidev "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) type gpuMIG struct { diff --git a/lxd/device/gpu_physical.go b/lxd/device/gpu_physical.go index 34a7aa82103a..1e8fd1f2f4a3 100644 --- a/lxd/device/gpu_physical.go +++ b/lxd/device/gpu_physical.go @@ -12,13 +12,13 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - pcidev "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + pcidev "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) const gpuDRIDevPath = "/dev/dri" diff --git a/lxd/device/gpu_sriov.go b/lxd/device/gpu_sriov.go index eaf89a3305ea..c699e5f4736f 100644 --- a/lxd/device/gpu_sriov.go +++ b/lxd/device/gpu_sriov.go @@ -9,14 +9,14 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - pcidev "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + pcidev "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) type gpuSRIOV struct { diff --git a/lxd/device/infiniband_physical.go b/lxd/device/infiniband_physical.go index 9cc41eefb314..6283a675460c 100644 --- a/lxd/device/infiniband_physical.go +++ b/lxd/device/infiniband_physical.go @@ -5,12 +5,12 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/shared" ) type infinibandPhysical struct { diff --git a/lxd/device/infiniband_sriov.go b/lxd/device/infiniband_sriov.go index e2b5c8f0aa4b..27c27bd38070 100644 --- a/lxd/device/infiniband_sriov.go +++ b/lxd/device/infiniband_sriov.go @@ -5,14 +5,14 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) type infinibandSRIOV struct { diff --git a/lxd/device/nic.go b/lxd/device/nic.go index fb4ff9d1c1e1..3522816d6441 100644 --- a/lxd/device/nic.go +++ b/lxd/device/nic.go @@ -3,9 +3,9 @@ package device import ( "fmt" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" ) // nicValidationRules returns config validation rules for nic devices. diff --git a/lxd/device/nic_bridged.go b/lxd/device/nic_bridged.go index 8c9f237c8d17..de0074cce6ac 100644 --- a/lxd/device/nic_bridged.go +++ b/lxd/device/nic_bridged.go @@ -18,21 +18,21 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/dnsmasq" - "github.com/lxc/lxd/lxd/dnsmasq/dhcpalloc" - firewallDrivers "github.com/lxc/lxd/lxd/firewall/drivers" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/dnsmasq" + "github.com/canonical/lxd/lxd/dnsmasq/dhcpalloc" + firewallDrivers "github.com/canonical/lxd/lxd/firewall/drivers" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) type bridgeNetwork interface { diff --git a/lxd/device/nic_ipvlan.go b/lxd/device/nic_ipvlan.go index 0d4e39c2159d..6a345bb96ac7 100644 --- a/lxd/device/nic_ipvlan.go +++ b/lxd/device/nic_ipvlan.go @@ -4,14 +4,14 @@ import ( "fmt" "strings" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" "github.com/pkg/errors" ) diff --git a/lxd/device/nic_macvlan.go b/lxd/device/nic_macvlan.go index 78798d89f5e7..aad32f3a065e 100644 --- a/lxd/device/nic_macvlan.go +++ b/lxd/device/nic_macvlan.go @@ -5,13 +5,13 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" ) type nicMACVLAN struct { diff --git a/lxd/device/nic_p2p.go b/lxd/device/nic_p2p.go index 851d923e1d89..b171216fd473 100644 --- a/lxd/device/nic_p2p.go +++ b/lxd/device/nic_p2p.go @@ -3,12 +3,12 @@ package device import ( "fmt" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" ) type nicP2P struct { diff --git a/lxd/device/nic_physical.go b/lxd/device/nic_physical.go index f028e199d9f7..c40878294cb5 100644 --- a/lxd/device/nic_physical.go +++ b/lxd/device/nic_physical.go @@ -5,15 +5,15 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - pcidev "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + pcidev "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) type nicPhysical struct { diff --git a/lxd/device/nic_routed.go b/lxd/device/nic_routed.go index f10e5cae61f7..dc70aa259b8b 100644 --- a/lxd/device/nic_routed.go +++ b/lxd/device/nic_routed.go @@ -10,15 +10,15 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" ) var nicRoutedIPGateway = map[string]string{ diff --git a/lxd/device/nic_sriov.go b/lxd/device/nic_sriov.go index 31e89eb1ef20..1c89056a4c1e 100644 --- a/lxd/device/nic_sriov.go +++ b/lxd/device/nic_sriov.go @@ -5,12 +5,12 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) type nicSRIOV struct { diff --git a/lxd/device/nictype/nictype.go b/lxd/device/nictype/nictype.go index 410b56678bcb..859bc543ffa0 100644 --- a/lxd/device/nictype/nictype.go +++ b/lxd/device/nictype/nictype.go @@ -7,8 +7,8 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/state" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/state" ) // NICType resolves the NIC Type for the supplied NIC device config. diff --git a/lxd/device/none.go b/lxd/device/none.go index 5fa3f08b4963..910560732a01 100644 --- a/lxd/device/none.go +++ b/lxd/device/none.go @@ -1,8 +1,8 @@ package device import ( - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" ) type none struct { diff --git a/lxd/device/pci/pci.go b/lxd/device/pci/pci.go index 16046cedbc3e..4f16eb871a57 100644 --- a/lxd/device/pci/pci.go +++ b/lxd/device/pci/pci.go @@ -12,8 +12,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" ) // Device represents info about a PCI uevent device. diff --git a/lxd/device/pci/pci_test.go b/lxd/device/pci/pci_test.go index 0d0e0de61dc6..8839c5585119 100644 --- a/lxd/device/pci/pci_test.go +++ b/lxd/device/pci/pci_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/lxc/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/device/pci" ) func TestNormaliseAddress(t *testing.T) { diff --git a/lxd/device/proxy.go b/lxd/device/proxy.go index cf295777a3c1..d421c733e0e5 100644 --- a/lxd/device/proxy.go +++ b/lxd/device/proxy.go @@ -13,19 +13,19 @@ import ( "github.com/pkg/errors" liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/lxd/apparmor" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/device/nictype" - firewallDrivers "github.com/lxc/lxd/lxd/firewall/drivers" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/subprocess" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/apparmor" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device/nictype" + firewallDrivers "github.com/canonical/lxd/lxd/firewall/drivers" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/subprocess" + "github.com/canonical/lxd/shared/validate" ) type proxy struct { diff --git a/lxd/device/unix_common.go b/lxd/device/unix_common.go index 003614ad4607..def4e03be22c 100644 --- a/lxd/device/unix_common.go +++ b/lxd/device/unix_common.go @@ -5,13 +5,13 @@ import ( "path/filepath" "strings" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/fsmonitor/drivers" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/fsmonitor/drivers" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" ) // unixIsOurDeviceType checks that device file type matches what we are expecting in the config. diff --git a/lxd/device/unix_hotplug.go b/lxd/device/unix_hotplug.go index 290f19c7466c..63ef6f29fcbc 100644 --- a/lxd/device/unix_hotplug.go +++ b/lxd/device/unix_hotplug.go @@ -9,11 +9,11 @@ import ( udev "github.com/jochenvg/go-udev" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" ) // unixHotplugIsOurDevice indicates whether the unixHotplug device event qualifies as part of our device. diff --git a/lxd/device/usb.go b/lxd/device/usb.go index 55d3816720d6..b509b1ce0a7e 100644 --- a/lxd/device/usb.go +++ b/lxd/device/usb.go @@ -7,12 +7,12 @@ import ( "path" "strings" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/validate" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/validate" ) // usbDevPath is the path where USB devices can be enumerated. diff --git a/lxd/devices.go b/lxd/devices.go index e8dbd24253b4..4215ef7b4f25 100644 --- a/lxd/devices.go +++ b/lxd/devices.go @@ -13,16 +13,16 @@ import ( log "gopkg.in/inconshreveable/log15.v2" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" - - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/device" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + _ "github.com/canonical/lxd/lxd/include" + + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/device" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) /* diff --git a/lxd/devlxd.go b/lxd/devlxd.go index a8555ec8dec5..5f9990233f0a 100644 --- a/lxd/devlxd.go +++ b/lxd/devlxd.go @@ -14,17 +14,17 @@ import ( "github.com/gorilla/mux" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/ucred" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/ucred" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // DevLxdServer creates an http.Server capable of handling requests against the @@ -185,7 +185,7 @@ func hoistReq(f func(*Daemon, instance.Instance, http.ResponseWriter, *http.Requ util.WriteJSON(w, resp.content, debugLogger) } else if resp.ctype != "websocket" { w.Header().Set("Content-Type", "application/octet-stream") - fmt.Fprintf(w, resp.content.(string)) + fmt.Fprint(w, resp.content.(string)) } } } diff --git a/lxd/devlxd_test.go b/lxd/devlxd_test.go index 1745d6c14fb6..3ebae82fdec9 100644 --- a/lxd/devlxd_test.go +++ b/lxd/devlxd_test.go @@ -13,8 +13,8 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/lxd/ucred" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/lxd/ucred" ) var testDir string diff --git a/lxd/dnsmasq/dhcpalloc/dhcpalloc.go b/lxd/dnsmasq/dhcpalloc/dhcpalloc.go index ffd22d85cb17..1ba8e376b39d 100644 --- a/lxd/dnsmasq/dhcpalloc/dhcpalloc.go +++ b/lxd/dnsmasq/dhcpalloc/dhcpalloc.go @@ -13,10 +13,10 @@ import ( "github.com/mdlayher/netx/eui64" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/dnsmasq" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/dnsmasq" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) // ErrDHCPNotSupported indicates network doesn't support DHCP for this IP protocol. diff --git a/lxd/dnsmasq/dnsmasq.go b/lxd/dnsmasq/dnsmasq.go index 593848efd80a..cf15a66e9bc3 100644 --- a/lxd/dnsmasq/dnsmasq.go +++ b/lxd/dnsmasq/dnsmasq.go @@ -10,10 +10,10 @@ import ( "sync" "time" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/subprocess" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/subprocess" + "github.com/canonical/lxd/shared/version" ) // DHCPAllocation represents an IP allocation from dnsmasq. diff --git a/lxd/endpoints/cluster.go b/lxd/endpoints/cluster.go index 8e6c2cea8ed0..007bff31326a 100644 --- a/lxd/endpoints/cluster.go +++ b/lxd/endpoints/cluster.go @@ -5,10 +5,10 @@ import ( "net" "time" - "github.com/lxc/lxd/lxd/endpoints/listeners" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/endpoints/listeners" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // ClusterAddress returns the cluster addresss of the cluster endpoint, or an diff --git a/lxd/endpoints/devlxd_test.go b/lxd/endpoints/devlxd_test.go index f92c0bbf2cdf..43c16e2ec2d8 100644 --- a/lxd/endpoints/devlxd_test.go +++ b/lxd/endpoints/devlxd_test.go @@ -3,7 +3,7 @@ package endpoints_test import ( "testing" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/endpoints/endpoints.go b/lxd/endpoints/endpoints.go index f051e7feb701..36b6b0de5c44 100644 --- a/lxd/endpoints/endpoints.go +++ b/lxd/endpoints/endpoints.go @@ -9,10 +9,10 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/endpoints/listeners" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/endpoints/listeners" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" tomb "gopkg.in/tomb.v2" ) diff --git a/lxd/endpoints/endpoints_exported_test.go b/lxd/endpoints/endpoints_exported_test.go index cc4802fee881..4d13a4dfeda6 100644 --- a/lxd/endpoints/endpoints_exported_test.go +++ b/lxd/endpoints/endpoints_exported_test.go @@ -1,8 +1,8 @@ package endpoints import ( - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // New creates a new Endpoints instance without bringing it up. diff --git a/lxd/endpoints/endpoints_test.go b/lxd/endpoints/endpoints_test.go index 4fcb7fbef34c..146dd16f20a3 100644 --- a/lxd/endpoints/endpoints_test.go +++ b/lxd/endpoints/endpoints_test.go @@ -12,11 +12,11 @@ import ( "strconv" "testing" - "github.com/lxc/lxd/lxd/endpoints" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/endpoints" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logging" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/endpoints/listeners/fancytls.go b/lxd/endpoints/listeners/fancytls.go index 85765dc074c0..c68a0a1effa4 100644 --- a/lxd/endpoints/listeners/fancytls.go +++ b/lxd/endpoints/listeners/fancytls.go @@ -7,8 +7,8 @@ import ( "github.com/armon/go-proxyproto" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // FancyTLSListener is a variation of the standard tls.Listener that supports diff --git a/lxd/endpoints/listeners/starttls.go b/lxd/endpoints/listeners/starttls.go index 2df3056966d7..1b6149085b3c 100644 --- a/lxd/endpoints/listeners/starttls.go +++ b/lxd/endpoints/listeners/starttls.go @@ -7,8 +7,8 @@ import ( "net" "sync" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // StarttlsListener is a variation of the standard tls.Listener that supports diff --git a/lxd/endpoints/local_test.go b/lxd/endpoints/local_test.go index 57b34c19beb3..c06e5db54d13 100644 --- a/lxd/endpoints/local_test.go +++ b/lxd/endpoints/local_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/endpoints/network.go b/lxd/endpoints/network.go index e3a8eaa2b6f9..f4e867fff289 100644 --- a/lxd/endpoints/network.go +++ b/lxd/endpoints/network.go @@ -6,10 +6,10 @@ import ( "strings" "time" - "github.com/lxc/lxd/lxd/endpoints/listeners" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/endpoints/listeners" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" "github.com/pkg/errors" ) diff --git a/lxd/endpoints/network_test.go b/lxd/endpoints/network_test.go index 7204420ad2ab..f792dfb7d16b 100644 --- a/lxd/endpoints/network_test.go +++ b/lxd/endpoints/network_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/endpoints/pprof.go b/lxd/endpoints/pprof.go index eb153606e8b3..57936a9bfb3f 100644 --- a/lxd/endpoints/pprof.go +++ b/lxd/endpoints/pprof.go @@ -6,9 +6,9 @@ import ( "net/http" "time" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" _ "net/http/pprof" // pprof magic ) diff --git a/lxd/endpoints/socket.go b/lxd/endpoints/socket.go index e7114c8f64e6..90fbba41f7af 100644 --- a/lxd/endpoints/socket.go +++ b/lxd/endpoints/socket.go @@ -10,9 +10,9 @@ import ( "os/user" "strconv" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // Bind to the given unix socket path. diff --git a/lxd/events.go b/lxd/events.go index 6ffde803520c..5407febc0e83 100644 --- a/lxd/events.go +++ b/lxd/events.go @@ -6,11 +6,11 @@ import ( "net/http" "strings" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" ) var eventTypes = []string{"logging", "operation", "lifecycle"} diff --git a/lxd/events/common.go b/lxd/events/common.go index a8bc581bff4d..d998546325b1 100644 --- a/lxd/events/common.go +++ b/lxd/events/common.go @@ -8,8 +8,8 @@ import ( "github.com/gorilla/websocket" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // EventHandler called when the connection receives an event from the client. diff --git a/lxd/events/devlxdEvents.go b/lxd/events/devlxdEvents.go index eeffda7abc6e..ab5c84782be3 100644 --- a/lxd/events/devlxdEvents.go +++ b/lxd/events/devlxdEvents.go @@ -8,9 +8,9 @@ import ( "github.com/pborman/uuid" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" ) // DevLXDServer represents an instance of an devlxd event server. diff --git a/lxd/events/events.go b/lxd/events/events.go index ffd3784664dc..6106b799e67e 100644 --- a/lxd/events/events.go +++ b/lxd/events/events.go @@ -8,10 +8,10 @@ import ( "github.com/pborman/uuid" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" "github.com/gorilla/websocket" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" ) // Server represents an instance of an event server. diff --git a/lxd/events/logging.go b/lxd/events/logging.go index 05f1e19815e5..f0f55fda7fc9 100644 --- a/lxd/events/logging.go +++ b/lxd/events/logging.go @@ -5,7 +5,7 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // LoggingServer controls what server to use for messages coming from the logger. diff --git a/lxd/filter/clause.go b/lxd/filter/clause.go index 4b6d0a836b13..951cc0f4f636 100644 --- a/lxd/filter/clause.go +++ b/lxd/filter/clause.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Clause is a single filter clause in a filter string. diff --git a/lxd/filter/clause_test.go b/lxd/filter/clause_test.go index 0cfa73f5f980..7da8ba6ce19d 100644 --- a/lxd/filter/clause_test.go +++ b/lxd/filter/clause_test.go @@ -3,7 +3,7 @@ package filter_test import ( "testing" - "github.com/lxc/lxd/lxd/filter" + "github.com/canonical/lxd/lxd/filter" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/filter/match_test.go b/lxd/filter/match_test.go index cdd719cbe618..5de596104e3d 100644 --- a/lxd/filter/match_test.go +++ b/lxd/filter/match_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/filter" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/filter" + "github.com/canonical/lxd/shared/api" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/filter/value_test.go b/lxd/filter/value_test.go index 96691155604f..137cb209e1c9 100644 --- a/lxd/filter/value_test.go +++ b/lxd/filter/value_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/filter" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/filter" + "github.com/canonical/lxd/shared/api" "github.com/stretchr/testify/assert" ) diff --git a/lxd/firewall/drivers/drivers_nftables.go b/lxd/firewall/drivers/drivers_nftables.go index e126606ec027..2670fdfbb778 100644 --- a/lxd/firewall/drivers/drivers_nftables.go +++ b/lxd/firewall/drivers/drivers_nftables.go @@ -13,9 +13,9 @@ import ( "github.com/pborman/uuid" "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/version" ) const nftablesNamespace = "lxd" diff --git a/lxd/firewall/drivers/drivers_xtables.go b/lxd/firewall/drivers/drivers_xtables.go index 096f99937ce4..3d5917e3d9f6 100644 --- a/lxd/firewall/drivers/drivers_xtables.go +++ b/lxd/firewall/drivers/drivers_xtables.go @@ -13,11 +13,11 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // iptablesChainNICFilterPrefix chain prefix used for NIC specific filtering rules. diff --git a/lxd/firewall/firewall_interface.go b/lxd/firewall/firewall_interface.go index b1df9bfd6d56..eb9443d3d258 100644 --- a/lxd/firewall/firewall_interface.go +++ b/lxd/firewall/firewall_interface.go @@ -3,7 +3,7 @@ package firewall import ( "net" - drivers "github.com/lxc/lxd/lxd/firewall/drivers" + drivers "github.com/canonical/lxd/lxd/firewall/drivers" ) // Firewall represents a LXD firewall. diff --git a/lxd/firewall/firewall_load.go b/lxd/firewall/firewall_load.go index ec332e703d7d..4c40c93c83c9 100644 --- a/lxd/firewall/firewall_load.go +++ b/lxd/firewall/firewall_load.go @@ -1,8 +1,8 @@ package firewall import ( - "github.com/lxc/lxd/lxd/firewall/drivers" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/firewall/drivers" + "github.com/canonical/lxd/shared/logger" ) // New returns an appropriate firewall implementation. diff --git a/lxd/fsmonitor/drivers/common.go b/lxd/fsmonitor/drivers/common.go index 7e086ca66ef8..345fb7bbd3c7 100644 --- a/lxd/fsmonitor/drivers/common.go +++ b/lxd/fsmonitor/drivers/common.go @@ -4,7 +4,7 @@ import ( "strings" "sync" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) type common struct { diff --git a/lxd/fsmonitor/drivers/driver_fsnotify.go b/lxd/fsmonitor/drivers/driver_fsnotify.go index f55354da7ac8..2b28d367ea3f 100644 --- a/lxd/fsmonitor/drivers/driver_fsnotify.go +++ b/lxd/fsmonitor/drivers/driver_fsnotify.go @@ -10,7 +10,7 @@ import ( fsn "github.com/fsnotify/fsnotify" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) var fsnotifyLoaded bool diff --git a/lxd/fsmonitor/drivers/interface.go b/lxd/fsmonitor/drivers/interface.go index 42b0e6f7a01f..3f5de1ddb0b2 100644 --- a/lxd/fsmonitor/drivers/interface.go +++ b/lxd/fsmonitor/drivers/interface.go @@ -3,7 +3,7 @@ package drivers import ( "context" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) // driver is the extended internal interface. diff --git a/lxd/fsmonitor/drivers/load.go b/lxd/fsmonitor/drivers/load.go index 4511084c5074..f2e2123aaad5 100644 --- a/lxd/fsmonitor/drivers/load.go +++ b/lxd/fsmonitor/drivers/load.go @@ -3,7 +3,7 @@ package drivers import ( "context" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) var drivers = map[string]func() driver{ diff --git a/lxd/fsmonitor/fsmonitor.go b/lxd/fsmonitor/fsmonitor.go index 6d5277401411..acc95f6ef374 100644 --- a/lxd/fsmonitor/fsmonitor.go +++ b/lxd/fsmonitor/fsmonitor.go @@ -3,8 +3,8 @@ package fsmonitor import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/fsmonitor/drivers" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/fsmonitor/drivers" + "github.com/canonical/lxd/shared/logger" ) type fsMonitor struct { diff --git a/lxd/fsmonitor/load.go b/lxd/fsmonitor/load.go index 58826cbc0151..ac73b99c34d6 100644 --- a/lxd/fsmonitor/load.go +++ b/lxd/fsmonitor/load.go @@ -6,10 +6,10 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/fsmonitor/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/fsmonitor/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) // New creates a new FSMonitor instance. diff --git a/lxd/images.go b/lxd/images.go index fe7119cf2d5c..d31a1175ee9a 100644 --- a/lxd/images.go +++ b/lxd/images.go @@ -28,29 +28,29 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/filter" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/operations" - projectutils "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/filter" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/operations" + projectutils "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" ) var imagesCmd = APIEndpoint{ diff --git a/lxd/init.go b/lxd/init.go index 0c59258e5459..edc5dc24bcfa 100644 --- a/lxd/init.go +++ b/lxd/init.go @@ -5,10 +5,10 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) type initDataNode struct { diff --git a/lxd/instance.go b/lxd/instance.go index e540ae6f2646..2b292eecf892 100644 --- a/lxd/instance.go +++ b/lxd/instance.go @@ -11,18 +11,18 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // Helper functions diff --git a/lxd/instance/drivers/driver_common.go b/lxd/instance/drivers/driver_common.go index 89f36e23f449..8bd1c424d81d 100644 --- a/lxd/instance/drivers/driver_common.go +++ b/lxd/instance/drivers/driver_common.go @@ -11,24 +11,24 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/query" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/device/nictype" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/maas" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/query" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device/nictype" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/maas" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // ErrInstanceIsStopped indicates that the instance is stopped. diff --git a/lxd/instance/drivers/driver_lxc.go b/lxd/instance/drivers/driver_lxc.go index b352265e810d..eff5f83958b3 100644 --- a/lxd/instance/drivers/driver_lxc.go +++ b/lxd/instance/drivers/driver_lxc.go @@ -27,35 +27,35 @@ import ( liblxc "gopkg.in/lxc/go-lxc.v2" yaml "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/apparmor" - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/device" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/device/nictype" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/seccomp" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/template" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/netutils" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/apparmor" + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/device" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device/nictype" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/seccomp" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/template" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/netutils" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/units" ) // Helper functions @@ -1308,7 +1308,7 @@ func (d *lxc) IdmappedStorage(path string) idmap.IdmapStorageType { mode = idmap.IdmapStorageShiftfs } - if !d.state.OS.LXCFeatures["idmapped_mounts_v2"] { + if !d.state.OS.LXCFeatures["idmapped_mounts_v2"] || shared.IsTrue(os.Getenv("LXD_IDMAPPED_MOUNTS_DISABLE")) { return mode } diff --git a/lxd/instance/drivers/driver_lxc_cmd.go b/lxd/instance/drivers/driver_lxc_cmd.go index ea21e705c04f..928a9ac9573b 100644 --- a/lxd/instance/drivers/driver_lxc_cmd.go +++ b/lxd/instance/drivers/driver_lxc_cmd.go @@ -5,8 +5,8 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // lxcCmd represents a running command for an LXC container. diff --git a/lxd/instance/drivers/driver_qemu.go b/lxd/instance/drivers/driver_qemu.go index 42cc9c69d924..9933cfb11a84 100644 --- a/lxd/instance/drivers/driver_qemu.go +++ b/lxd/instance/drivers/driver_qemu.go @@ -29,38 +29,38 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/apparmor" - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/device" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/device/nictype" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/drivers/qmp" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - pongoTemplate "github.com/lxc/lxd/lxd/template" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/lxd/vsock" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/subprocess" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/apparmor" + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/device" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device/nictype" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/drivers/qmp" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + pongoTemplate "github.com/canonical/lxd/lxd/template" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/lxd/vsock" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/subprocess" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/version" ) // qemuAsyncIO is used to indicate disk should use unsafe cache I/O. @@ -1279,7 +1279,7 @@ func (d *qemu) Start(stateful bool) error { "-serial", "chardev:console", "-nodefaults", "-no-user-config", - "-sandbox", "on,obsolete=deny,elevateprivileges=allow,spawn=deny,resourcecontrol=deny", + "-sandbox", "on,obsolete=deny,elevateprivileges=allow,spawn=allow,resourcecontrol=deny", "-readconfig", confFile, "-spice", d.spiceCmdlineConfig(), "-pidfile", d.pidFilePath(), diff --git a/lxd/instance/drivers/driver_qemu_cmd.go b/lxd/instance/drivers/driver_qemu_cmd.go index 2259a65277c9..59359f7d8de5 100644 --- a/lxd/instance/drivers/driver_qemu_cmd.go +++ b/lxd/instance/drivers/driver_qemu_cmd.go @@ -6,9 +6,9 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // Cmd represents a running command for an Qemu VM. diff --git a/lxd/instance/drivers/load.go b/lxd/instance/drivers/load.go index 5ea03ce4aa28..7519e0f0ecd8 100644 --- a/lxd/instance/drivers/load.go +++ b/lxd/instance/drivers/load.go @@ -7,16 +7,16 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/device" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/device" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // Instance driver definitions. diff --git a/lxd/instance/drivers/qmp/commands.go b/lxd/instance/drivers/qmp/commands.go index 2da3bf9bc93d..85d7507b0429 100644 --- a/lxd/instance/drivers/qmp/commands.go +++ b/lxd/instance/drivers/qmp/commands.go @@ -8,8 +8,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" ) // Status returns the current VM status. diff --git a/lxd/instance/drivers/qmp/monitor.go b/lxd/instance/drivers/qmp/monitor.go index df6ab6c5e976..3f2171db34db 100644 --- a/lxd/instance/drivers/qmp/monitor.go +++ b/lxd/instance/drivers/qmp/monitor.go @@ -10,7 +10,7 @@ import ( "github.com/digitalocean/go-qemu/qmp" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) var monitors = map[string]*Monitor{} diff --git a/lxd/instance/drivers/test_util.go b/lxd/instance/drivers/test_util.go index 6ea131b9951d..5449fe696094 100644 --- a/lxd/instance/drivers/test_util.go +++ b/lxd/instance/drivers/test_util.go @@ -1,8 +1,8 @@ package drivers import ( - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" ) // PrepareEqualTest modifies any unexported variables required for reflect.DeepEqual to complete safely. diff --git a/lxd/instance/filter.go b/lxd/instance/filter.go index 495f6717b5fd..a5fab8bd3021 100644 --- a/lxd/instance/filter.go +++ b/lxd/instance/filter.go @@ -1,8 +1,8 @@ package instance import ( - "github.com/lxc/lxd/lxd/filter" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/filter" + "github.com/canonical/lxd/shared/api" ) // Filter returns a filtered list of instances that match the given clauses. diff --git a/lxd/instance/instance_interface.go b/lxd/instance/instance_interface.go index bcf288354642..e59471263a4b 100644 --- a/lxd/instance/instance_interface.go +++ b/lxd/instance/instance_interface.go @@ -7,14 +7,14 @@ import ( liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" ) // HookStart hook used when instance has started. diff --git a/lxd/instance/instance_utils.go b/lxd/instance/instance_utils.go index 59c3a669c607..4a1f737f1977 100644 --- a/lxd/instance/instance_utils.go +++ b/lxd/instance/instance_utils.go @@ -17,24 +17,24 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/seccomp" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/seccomp" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" + "github.com/canonical/lxd/shared/version" ) // ValidDevices is linked from instance/drivers.validDevices to validate device config. diff --git a/lxd/instance/instancetype/instance_type.go b/lxd/instance/instancetype/instance_type.go index 55a040086ab9..4b324da0b229 100644 --- a/lxd/instance/instancetype/instance_type.go +++ b/lxd/instance/instancetype/instance_type.go @@ -3,7 +3,7 @@ package instancetype import ( "fmt" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Type indicates the type of instance. diff --git a/lxd/instance/operationlock/operationlock.go b/lxd/instance/operationlock/operationlock.go index acd243dff37e..b598df6ca689 100644 --- a/lxd/instance/operationlock/operationlock.go +++ b/lxd/instance/operationlock/operationlock.go @@ -7,8 +7,8 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/logger" ) // TimeoutSeconds number of seconds that the operation lock will be kept for without calling Reset(). diff --git a/lxd/instance_backup.go b/lxd/instance_backup.go index dcab6036e621..116ba8a42b3a 100644 --- a/lxd/instance_backup.go +++ b/lxd/instance_backup.go @@ -10,17 +10,17 @@ import ( "github.com/gorilla/mux" "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) // swagger:operation GET /1.0/instances/{name}/backups instances instance_backups_get diff --git a/lxd/instance_console.go b/lxd/instance_console.go index 7955c0bebe9a..f57a9ee68e0e 100644 --- a/lxd/instance_console.go +++ b/lxd/instance_console.go @@ -14,17 +14,17 @@ import ( "golang.org/x/sys/unix" liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/termios" ) type consoleWs struct { diff --git a/lxd/instance_delete.go b/lxd/instance_delete.go index d28248b890db..a95b496959c3 100644 --- a/lxd/instance_delete.go +++ b/lxd/instance_delete.go @@ -4,12 +4,12 @@ import ( "fmt" "net/http" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" ) // swagger:operation DELETE /1.0/instances/{name} instances instance_delete diff --git a/lxd/instance_exec.go b/lxd/instance_exec.go index 9a2bb196e093..6708c4de5a23 100644 --- a/lxd/instance_exec.go +++ b/lxd/instance_exec.go @@ -18,19 +18,19 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/netutils" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/netutils" + "github.com/canonical/lxd/shared/version" ) const execWSControl = -1 diff --git a/lxd/instance_file.go b/lxd/instance_file.go index e1e266c2812b..d2621a7f6182 100644 --- a/lxd/instance_file.go +++ b/lxd/instance_file.go @@ -10,9 +10,9 @@ import ( "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" ) func instanceFileHandler(d *Daemon, r *http.Request) response.Response { diff --git a/lxd/instance_get.go b/lxd/instance_get.go index 3af101c3bc49..dbfafb3c656a 100644 --- a/lxd/instance_get.go +++ b/lxd/instance_get.go @@ -3,9 +3,9 @@ package main import ( "net/http" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/response" "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/response" ) // swagger:operation GET /1.0/instances/{name} instances instance_get diff --git a/lxd/instance_instance_types.go b/lxd/instance_instance_types.go index 893ff256efa0..f2f161de17fc 100644 --- a/lxd/instance_instance_types.go +++ b/lxd/instance_instance_types.go @@ -11,13 +11,13 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) type instanceType struct { @@ -111,7 +111,7 @@ func instanceRefreshTypesTask(d *Daemon) (task.Func, task.Schedule) { func instanceRefreshTypes(ctx context.Context, d *Daemon) error { // Attempt to download the new definitions downloadParse := func(filename string, target interface{}) error { - url := fmt.Sprintf("https://images.linuxcontainers.org/meta/instance-types/%s", filename) + url := fmt.Sprintf("https://images.lxd.canonical.com/meta/instance-types/%s", filename) httpClient, err := util.HTTPClient("", d.proxy) if err != nil { diff --git a/lxd/instance_logs.go b/lxd/instance_logs.go index 4725322acce1..d7e1a514b530 100644 --- a/lxd/instance_logs.go +++ b/lxd/instance_logs.go @@ -9,13 +9,13 @@ import ( "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/version" ) var instanceLogCmd = APIEndpoint{ diff --git a/lxd/instance_metadata.go b/lxd/instance_metadata.go index d74aad4be2dc..cfc48e1b9e95 100644 --- a/lxd/instance_metadata.go +++ b/lxd/instance_metadata.go @@ -14,14 +14,14 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // swagger:operation GET /1.0/instances/{name}/metadata instances instance_metadata_get diff --git a/lxd/instance_patch.go b/lxd/instance_patch.go index adf4b17f1f95..66fc27fe055e 100644 --- a/lxd/instance_patch.go +++ b/lxd/instance_patch.go @@ -9,15 +9,15 @@ import ( "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - projecthelpers "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + projecthelpers "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/osarch" ) // swagger:operation PATCH /1.0/instances/{name} instances instance_patch diff --git a/lxd/instance_post.go b/lxd/instance_post.go index 238da16ef353..e3d843ee767c 100644 --- a/lxd/instance_post.go +++ b/lxd/instance_post.go @@ -11,19 +11,19 @@ import ( "github.com/pborman/uuid" "github.com/pkg/errors" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) var internalClusterInstanceMovedCmd = APIEndpoint{ diff --git a/lxd/instance_put.go b/lxd/instance_put.go index e20c10586084..f38e39a44830 100644 --- a/lxd/instance_put.go +++ b/lxd/instance_put.go @@ -7,18 +7,18 @@ import ( "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - projecthelpers "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + projecthelpers "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/osarch" ) // swagger:operation PUT /1.0/instances/{name} instances instance_put diff --git a/lxd/instance_snapshot.go b/lxd/instance_snapshot.go index 240e160519b1..06275ebe817e 100644 --- a/lxd/instance_snapshot.go +++ b/lxd/instance_snapshot.go @@ -12,19 +12,19 @@ import ( "github.com/gorilla/mux" "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/validate" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/validate" + "github.com/canonical/lxd/shared/version" ) // swagger:operation GET /1.0/instances/{name}/snapshots instances instance_snapshots_get diff --git a/lxd/instance_state.go b/lxd/instance_state.go index 8b062cfa903e..221120633198 100644 --- a/lxd/instance_state.go +++ b/lxd/instance_state.go @@ -8,12 +8,12 @@ import ( "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // swagger:operation GET /1.0/instances/{name}/state instances instance_state_get diff --git a/lxd/instance_test.go b/lxd/instance_test.go index d5a4d3366ba8..a090b8ba6372 100644 --- a/lxd/instance_test.go +++ b/lxd/instance_test.go @@ -6,16 +6,16 @@ import ( "github.com/stretchr/testify/suite" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - instanceDrivers "github.com/lxc/lxd/lxd/instance/drivers" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/revert" - driver "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + instanceDrivers "github.com/canonical/lxd/lxd/instance/drivers" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/revert" + driver "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" ) type containerTestSuite struct { diff --git a/lxd/instances.go b/lxd/instances.go index bfeb6b9544ab..52561922e2e8 100644 --- a/lxd/instances.go +++ b/lxd/instances.go @@ -11,14 +11,14 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) var instancesCmd = APIEndpoint{ diff --git a/lxd/instances_get.go b/lxd/instances_get.go index 4aec93b93ade..5b3ea945c54a 100644 --- a/lxd/instances_get.go +++ b/lxd/instances_get.go @@ -12,18 +12,18 @@ import ( "github.com/gorilla/mux" "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/filter" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/filter" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // urlInstanceTypeDetect detects what sort of instance type filter is being requested. Either diff --git a/lxd/instances_post.go b/lxd/instances_post.go index 640840fa91ae..0c5c90607d81 100644 --- a/lxd/instances_post.go +++ b/lxd/instances_post.go @@ -16,22 +16,22 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/revert" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/revert" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" ) func createFromImage(d *Daemon, r *http.Request, projectName string, req *api.InstancesPost) response.Response { diff --git a/lxd/ip/addr.go b/lxd/ip/addr.go index 26ac6a61e72a..6ed4a3909e45 100644 --- a/lxd/ip/addr.go +++ b/lxd/ip/addr.go @@ -1,7 +1,7 @@ package ip import ( - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Addr represents arguments for address protocol manipulation diff --git a/lxd/ip/class.go b/lxd/ip/class.go index 35ef9e250ef5..319a6e8c55ea 100644 --- a/lxd/ip/class.go +++ b/lxd/ip/class.go @@ -1,7 +1,7 @@ package ip import ( - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Class represents qdisc class object diff --git a/lxd/ip/filter.go b/lxd/ip/filter.go index 0789f06a85ae..c71bf8ca7edd 100644 --- a/lxd/ip/filter.go +++ b/lxd/ip/filter.go @@ -1,7 +1,7 @@ package ip import ( - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Action represents an action in filter diff --git a/lxd/ip/link.go b/lxd/ip/link.go index b44c86c5eb22..165bd1068474 100644 --- a/lxd/ip/link.go +++ b/lxd/ip/link.go @@ -9,7 +9,7 @@ import ( "regexp" "strconv" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Link represents base arguments for link device diff --git a/lxd/ip/neigh.go b/lxd/ip/neigh.go index 2360e4841ef5..1098602898be 100644 --- a/lxd/ip/neigh.go +++ b/lxd/ip/neigh.go @@ -5,8 +5,8 @@ import ( "net" "strings" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // NeighbourIPState can be { PERMANENT | NOARP | REACHABLE | STALE | NONE | INCOMPLETE | DELAY | PROBE | FAILED }. diff --git a/lxd/ip/neigh_proxy.go b/lxd/ip/neigh_proxy.go index 24cf1dc506a5..4b8ecd4a22b8 100644 --- a/lxd/ip/neigh_proxy.go +++ b/lxd/ip/neigh_proxy.go @@ -4,8 +4,8 @@ import ( "net" "strings" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" ) // NeighProxy represents arguments for neighbour proxy manipulation. diff --git a/lxd/ip/qdisc.go b/lxd/ip/qdisc.go index 773730f25ba7..53f8dae0240a 100644 --- a/lxd/ip/qdisc.go +++ b/lxd/ip/qdisc.go @@ -1,7 +1,7 @@ package ip import ( - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Qdisc represents 'queueing discipline' object diff --git a/lxd/ip/route.go b/lxd/ip/route.go index 087089aa301f..7a4dcec5f447 100644 --- a/lxd/ip/route.go +++ b/lxd/ip/route.go @@ -3,7 +3,7 @@ package ip import ( "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Route represents arguments for route manipulation diff --git a/lxd/ip/tuntap.go b/lxd/ip/tuntap.go index ad02cde007ce..ccfb41e95b0f 100644 --- a/lxd/ip/tuntap.go +++ b/lxd/ip/tuntap.go @@ -1,7 +1,7 @@ package ip import ( - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Tuntap represents arguments for tuntap manipulation diff --git a/lxd/lifecycle/certificate.go b/lxd/lifecycle/certificate.go index 28eaced35308..2d4e3b37b572 100644 --- a/lxd/lifecycle/certificate.go +++ b/lxd/lifecycle/certificate.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // CertificateAction represents a lifecycle event action for Certificates. diff --git a/lxd/lifecycle/cluster.go b/lxd/lifecycle/cluster.go index 28a6b250b314..981c5d433d8d 100644 --- a/lxd/lifecycle/cluster.go +++ b/lxd/lifecycle/cluster.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // ClusterAction represents a lifecycle event action for clusters. diff --git a/lxd/lifecycle/cluster_member.go b/lxd/lifecycle/cluster_member.go index 64febb5eb14f..1bbedfe653fe 100644 --- a/lxd/lifecycle/cluster_member.go +++ b/lxd/lifecycle/cluster_member.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // ClusterMemberAction represents a lifecycle event action for cluster members. diff --git a/lxd/lifecycle/config.go b/lxd/lifecycle/config.go index 82a025115ace..72fd639c5905 100644 --- a/lxd/lifecycle/config.go +++ b/lxd/lifecycle/config.go @@ -3,7 +3,7 @@ package lifecycle import ( "fmt" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // ConfigAction represents a lifecycle event action for the server configuration diff --git a/lxd/lifecycle/image.go b/lxd/lifecycle/image.go index 82cb7d87a207..d225560440ae 100644 --- a/lxd/lifecycle/image.go +++ b/lxd/lifecycle/image.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // ImageAction represents a lifecycle event action for images. diff --git a/lxd/lifecycle/image_alias.go b/lxd/lifecycle/image_alias.go index 576af5951ac9..992d866aa026 100644 --- a/lxd/lifecycle/image_alias.go +++ b/lxd/lifecycle/image_alias.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // ImageAliasAction represents a lifecycle event action for image aliases. diff --git a/lxd/lifecycle/instance.go b/lxd/lifecycle/instance.go index 2083e56f69d9..9e4fd80d9007 100644 --- a/lxd/lifecycle/instance.go +++ b/lxd/lifecycle/instance.go @@ -3,9 +3,9 @@ package lifecycle import ( "fmt" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) // Internal copy of the instance interface. diff --git a/lxd/lifecycle/instance_backup.go b/lxd/lifecycle/instance_backup.go index 2056d9ef4df4..50f4dd24f5dc 100644 --- a/lxd/lifecycle/instance_backup.go +++ b/lxd/lifecycle/instance_backup.go @@ -4,9 +4,9 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // InstanceBackupAction represents a lifecycle event action for instance backups. diff --git a/lxd/lifecycle/instance_log.go b/lxd/lifecycle/instance_log.go index 56e1f82709a0..214050b2117d 100644 --- a/lxd/lifecycle/instance_log.go +++ b/lxd/lifecycle/instance_log.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // InstanceLogAction represents a lifecycle event action for instance logs. diff --git a/lxd/lifecycle/instance_metadata.go b/lxd/lifecycle/instance_metadata.go index 5446c1d31507..3f068f8288e9 100644 --- a/lxd/lifecycle/instance_metadata.go +++ b/lxd/lifecycle/instance_metadata.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // InstanceMetadataAction represents a lifecycle event action for instance metadata. diff --git a/lxd/lifecycle/instance_metadata_template.go b/lxd/lifecycle/instance_metadata_template.go index 4732ed4d579a..b7bcda604c15 100644 --- a/lxd/lifecycle/instance_metadata_template.go +++ b/lxd/lifecycle/instance_metadata_template.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // InstanceMetadataTemplateAction represents a lifecycle event action for instance metadata templates. diff --git a/lxd/lifecycle/instance_snapshot.go b/lxd/lifecycle/instance_snapshot.go index 76b8841aa1b6..07db118a7351 100644 --- a/lxd/lifecycle/instance_snapshot.go +++ b/lxd/lifecycle/instance_snapshot.go @@ -4,9 +4,9 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // InstanceSnapshotAction represents a lifecycle event action for instance snapshots. diff --git a/lxd/lifecycle/network.go b/lxd/lifecycle/network.go index 10118a990542..3d9547f90a61 100644 --- a/lxd/lifecycle/network.go +++ b/lxd/lifecycle/network.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // Internal copy of the network interface. diff --git a/lxd/lifecycle/operation.go b/lxd/lifecycle/operation.go index a6ff2a636f9e..00bd45561996 100644 --- a/lxd/lifecycle/operation.go +++ b/lxd/lifecycle/operation.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Internal copy of the operation interface. diff --git a/lxd/lifecycle/profile.go b/lxd/lifecycle/profile.go index 9d51a4f14835..2f05e2425cac 100644 --- a/lxd/lifecycle/profile.go +++ b/lxd/lifecycle/profile.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // ProfileAction represents a lifecycle event action for profiles. diff --git a/lxd/lifecycle/project.go b/lxd/lifecycle/project.go index 062f457c6c92..d42ad7d4af4a 100644 --- a/lxd/lifecycle/project.go +++ b/lxd/lifecycle/project.go @@ -4,7 +4,7 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // ProjectAction represents a lifecycle event action for projects. diff --git a/lxd/lifecycle/storage_pool.go b/lxd/lifecycle/storage_pool.go index 6ad9a887b451..8d253112c3e5 100644 --- a/lxd/lifecycle/storage_pool.go +++ b/lxd/lifecycle/storage_pool.go @@ -4,8 +4,8 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // StoragePoolAction represents a lifecycle event action for storage pools. diff --git a/lxd/lifecycle/storage_volume.go b/lxd/lifecycle/storage_volume.go index dbd11dd65936..5cc856b746d4 100644 --- a/lxd/lifecycle/storage_volume.go +++ b/lxd/lifecycle/storage_volume.go @@ -4,9 +4,9 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // Internal copy of the volume interface. diff --git a/lxd/lifecycle/storage_volume_snapshot.go b/lxd/lifecycle/storage_volume_snapshot.go index e948a06d49f4..f906e0b02a8c 100644 --- a/lxd/lifecycle/storage_volume_snapshot.go +++ b/lxd/lifecycle/storage_volume_snapshot.go @@ -4,10 +4,10 @@ import ( "fmt" "net/url" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // StorageVolumeSnapshotAction represents a lifecycle event action for storage volume snapshots. diff --git a/lxd/logging.go b/lxd/logging.go index 517aa9f4d6d5..db0c1e76a7d1 100644 --- a/lxd/logging.go +++ b/lxd/logging.go @@ -9,15 +9,15 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // This task function expires logs when executed. It's started by the Daemon diff --git a/lxd/maas/controller.go b/lxd/maas/controller.go index 152c31f1b3bd..c35e9a79b124 100644 --- a/lxd/maas/controller.go +++ b/lxd/maas/controller.go @@ -7,7 +7,7 @@ import ( "github.com/juju/gomaasapi" - "github.com/lxc/lxd/lxd/project" + "github.com/canonical/lxd/lxd/project" ) // Instance is a MAAS specific instance interface. diff --git a/lxd/main.go b/lxd/main.go index b60cfd489760..040bce2ccb4e 100644 --- a/lxd/main.go +++ b/lxd/main.go @@ -8,14 +8,14 @@ import ( "github.com/canonical/go-dqlite" "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/events" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/events" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/version" ) // Initialize the random number generator diff --git a/lxd/main_activateifneeded.go b/lxd/main_activateifneeded.go index b935579f73b1..bfdbf608c280 100644 --- a/lxd/main_activateifneeded.go +++ b/lxd/main_activateifneeded.go @@ -8,14 +8,14 @@ import ( sqlite3 "github.com/mattn/go-sqlite3" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" ) func init() { diff --git a/lxd/main_callhook.go b/lxd/main_callhook.go index 865345863f88..e24f6c70deec 100644 --- a/lxd/main_callhook.go +++ b/lxd/main_callhook.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" + "github.com/canonical/lxd/client" ) type cmdCallhook struct { diff --git a/lxd/main_checkfeature.go b/lxd/main_checkfeature.go index 3cfcbbffb934..46e3d641b829 100644 --- a/lxd/main_checkfeature.go +++ b/lxd/main_checkfeature.go @@ -5,10 +5,10 @@ import ( "os" "runtime" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) /* diff --git a/lxd/main_cluster.go b/lxd/main_cluster.go index ad92016c2cc6..f79c3bae0e5c 100644 --- a/lxd/main_cluster.go +++ b/lxd/main_cluster.go @@ -13,15 +13,15 @@ import ( "github.com/canonical/go-dqlite/client" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxc/utils" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/termios" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxc/utils" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/termios" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/lxd/main_daemon.go b/lxd/main_daemon.go index e1012ce835dd..0128d0d75a1e 100644 --- a/lxd/main_daemon.go +++ b/lxd/main_daemon.go @@ -11,8 +11,8 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/shared/logger" ) type cmdDaemon struct { diff --git a/lxd/main_forkcoresched.go b/lxd/main_forkcoresched.go index 19323c7c1f7f..1d4b3cde3a17 100644 --- a/lxd/main_forkcoresched.go +++ b/lxd/main_forkcoresched.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/main_forkdns.go b/lxd/main_forkdns.go index a3c68642f133..db452d53dff5 100644 --- a/lxd/main_forkdns.go +++ b/lxd/main_forkdns.go @@ -14,11 +14,11 @@ import ( "github.com/miekg/dns" "github.com/spf13/cobra" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/dnsutil" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/dnsutil" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) type cmdForkDNS struct { diff --git a/lxd/main_forkexec.go b/lxd/main_forkexec.go index 2f31921068e0..392397539dab 100644 --- a/lxd/main_forkexec.go +++ b/lxd/main_forkexec.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/main_forkmount.go b/lxd/main_forkmount.go index 04af40e4b3d7..c7defba26703 100644 --- a/lxd/main_forkmount.go +++ b/lxd/main_forkmount.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/main_forknet.go b/lxd/main_forknet.go index 8d8cc168cc32..bdb19414a16a 100644 --- a/lxd/main_forknet.go +++ b/lxd/main_forknet.go @@ -7,10 +7,10 @@ import ( "github.com/spf13/cobra" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/shared/netutils" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/shared/netutils" ) /* diff --git a/lxd/main_forkproxy.go b/lxd/main_forkproxy.go index 222d608e9868..21db4de2b34c 100644 --- a/lxd/main_forkproxy.go +++ b/lxd/main_forkproxy.go @@ -16,13 +16,13 @@ import ( "golang.org/x/sys/unix" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/device" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/netutils" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/device" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/netutils" ) /* diff --git a/lxd/main_forkproxy_test.go b/lxd/main_forkproxy_test.go index 623519f0f062..80c16ff7f2ce 100644 --- a/lxd/main_forkproxy_test.go +++ b/lxd/main_forkproxy_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/device" - deviceConfig "github.com/lxc/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device" + deviceConfig "github.com/canonical/lxd/lxd/device/config" ) func TestParseAddr(t *testing.T) { diff --git a/lxd/main_forkstart.go b/lxd/main_forkstart.go index 14db13c7b327..7c95d4c18230 100644 --- a/lxd/main_forkstart.go +++ b/lxd/main_forkstart.go @@ -8,7 +8,7 @@ import ( "golang.org/x/sys/unix" liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) type cmdForkstart struct { diff --git a/lxd/main_forksyscall.go b/lxd/main_forksyscall.go index 9a43dd65969e..f7a0e1ca5038 100644 --- a/lxd/main_forksyscall.go +++ b/lxd/main_forksyscall.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/main_forkusernsexec.go b/lxd/main_forkusernsexec.go index 1cd65af5c67f..41e5da6825dd 100644 --- a/lxd/main_forkusernsexec.go +++ b/lxd/main_forkusernsexec.go @@ -7,7 +7,7 @@ import ( "golang.org/x/sys/unix" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/main_forkzfs.go b/lxd/main_forkzfs.go index df021fc95cbe..f21742792ed2 100644 --- a/lxd/main_forkzfs.go +++ b/lxd/main_forkzfs.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/cobra" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) type cmdForkZFS struct { diff --git a/lxd/main_init.go b/lxd/main_init.go index bbe1996e26b8..9ecfe1b85e17 100644 --- a/lxd/main_init.go +++ b/lxd/main_init.go @@ -8,11 +8,11 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/version" ) type cmdInitData struct { diff --git a/lxd/main_init_auto.go b/lxd/main_init_auto.go index a8668100e960..a3e47d004e17 100644 --- a/lxd/main_init_auto.go +++ b/lxd/main_init_auto.go @@ -6,11 +6,11 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) func (c *cmdInit) RunAuto(cmd *cobra.Command, args []string, d lxd.InstanceServer, server *api.Server) (*cmdInitData, error) { diff --git a/lxd/main_init_dump.go b/lxd/main_init_dump.go index 8e180b4f154f..b1f408970d7e 100644 --- a/lxd/main_init_dump.go +++ b/lxd/main_init_dump.go @@ -6,8 +6,8 @@ import ( "github.com/pkg/errors" yaml "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" ) func (c *cmdInit) RunDump(d lxd.InstanceServer) error { diff --git a/lxd/main_init_interactive.go b/lxd/main_init_interactive.go index 3c09af0cb40f..ce12dd02a1d3 100644 --- a/lxd/main_init_interactive.go +++ b/lxd/main_init_interactive.go @@ -15,17 +15,17 @@ import ( "golang.org/x/sys/unix" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/validate" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/validate" + "github.com/canonical/lxd/shared/version" ) func (c *cmdInit) RunInteractive(cmd *cobra.Command, args []string, d lxd.InstanceServer, server *api.Server) (*cmdInitData, error) { diff --git a/lxd/main_init_preseed.go b/lxd/main_init_preseed.go index c6b534949488..c33514ff102a 100644 --- a/lxd/main_init_preseed.go +++ b/lxd/main_init_preseed.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/client" + "github.com/canonical/lxd/client" ) func (c *cmdInit) RunPreseed(cmd *cobra.Command, args []string, d lxd.InstanceServer) (*cmdInitData, error) { diff --git a/lxd/main_manpage.go b/lxd/main_manpage.go index 05e785f18d60..8d6342ebd516 100644 --- a/lxd/main_manpage.go +++ b/lxd/main_manpage.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/cobra/doc" - cli "github.com/lxc/lxd/shared/cmd" + cli "github.com/canonical/lxd/shared/cmd" ) type cmdManpage struct { diff --git a/lxd/main_migratedumpsuccess.go b/lxd/main_migratedumpsuccess.go index 1bbd00a42ae4..1d8f27a6c957 100644 --- a/lxd/main_migratedumpsuccess.go +++ b/lxd/main_migratedumpsuccess.go @@ -7,8 +7,8 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" ) type cmdMigratedumpsuccess struct { diff --git a/lxd/main_netcat.go b/lxd/main_netcat.go index b1dbf5faf332..0cc60c1336a4 100644 --- a/lxd/main_netcat.go +++ b/lxd/main_netcat.go @@ -9,8 +9,8 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/eagain" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/eagain" ) type cmdNetcat struct { diff --git a/lxd/main_nsexec.go b/lxd/main_nsexec.go index f11c0d4cb95b..73b2cd6e3a03 100644 --- a/lxd/main_nsexec.go +++ b/lxd/main_nsexec.go @@ -20,7 +20,7 @@ package main import ( // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/main_recover.go b/lxd/main_recover.go index a7fffd86a5e5..bb1c9a55d263 100644 --- a/lxd/main_recover.go +++ b/lxd/main_recover.go @@ -7,10 +7,10 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/api" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/api" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/validate" ) type cmdRecover struct { diff --git a/lxd/main_shutdown.go b/lxd/main_shutdown.go index e3d51b497206..68179751b975 100644 --- a/lxd/main_shutdown.go +++ b/lxd/main_shutdown.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" + "github.com/canonical/lxd/client" ) type cmdShutdown struct { diff --git a/lxd/main_sql.go b/lxd/main_sql.go index a6ee638a5a62..bd9add7fb0d7 100644 --- a/lxd/main_sql.go +++ b/lxd/main_sql.go @@ -10,8 +10,8 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared" ) type cmdSql struct { diff --git a/lxd/main_test.go b/lxd/main_test.go index e3701f46ca2d..3004a737f135 100644 --- a/lxd/main_test.go +++ b/lxd/main_test.go @@ -6,14 +6,14 @@ import ( "io/ioutil" "os" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/sys" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/sys" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" ) func mockStartDaemon() (*Daemon, error) { diff --git a/lxd/main_version.go b/lxd/main_version.go index 9396b336e948..c54a995eeb16 100644 --- a/lxd/main_version.go +++ b/lxd/main_version.go @@ -5,8 +5,8 @@ import ( "github.com/spf13/cobra" - cli "github.com/lxc/lxd/shared/cmd" - "github.com/lxc/lxd/shared/version" + cli "github.com/canonical/lxd/shared/cmd" + "github.com/canonical/lxd/shared/version" ) type cmdVersion struct { diff --git a/lxd/main_waitready.go b/lxd/main_waitready.go index da9caca5d649..30fd24f5250b 100644 --- a/lxd/main_waitready.go +++ b/lxd/main_waitready.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/shared/logger" ) type cmdWaitready struct { diff --git a/lxd/migrate.go b/lxd/migrate.go index f939b2d2565e..a8f0f70e4ec6 100644 --- a/lxd/migrate.go +++ b/lxd/migrate.go @@ -1,6 +1,6 @@ // Package migration provides the primitives for migration in LXD. // -// See https://github.com/lxc/lxd/blob/master/specs/migration.md for a complete +// See https://github.com/canonical/lxd/blob/main/doc/migration.md for a complete // description. package main @@ -19,14 +19,14 @@ import ( "google.golang.org/protobuf/proto" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" ) type migrationFields struct { diff --git a/lxd/migrate_instance.go b/lxd/migrate_instance.go index 39cb362ddbeb..82b605f863f2 100644 --- a/lxd/migrate_instance.go +++ b/lxd/migrate_instance.go @@ -17,21 +17,21 @@ import ( "google.golang.org/protobuf/proto" liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" ) func newMigrationSource(inst instance.Instance, stateful bool, instanceOnly bool) (*migrationSourceWs, error) { diff --git a/lxd/migrate_storage_volumes.go b/lxd/migrate_storage_volumes.go index b94db6e8b99d..e0c011a686af 100644 --- a/lxd/migrate_storage_volumes.go +++ b/lxd/migrate_storage_volumes.go @@ -7,15 +7,15 @@ import ( "github.com/gorilla/websocket" "google.golang.org/protobuf/proto" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) func newStorageMigrationSource(volumeOnly bool) (*migrationSourceWs, error) { diff --git a/lxd/migration/migration_volumes.go b/lxd/migration/migration_volumes.go index e6b71f5df962..098d963e1628 100644 --- a/lxd/migration/migration_volumes.go +++ b/lxd/migration/migration_volumes.go @@ -4,10 +4,10 @@ import ( "fmt" "io" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // Type represents the migration transport type. It indicates the method by which the migration can diff --git a/lxd/migration/wsproto.go b/lxd/migration/wsproto.go index bbc6a7010164..c4e9f2adbaaa 100644 --- a/lxd/migration/wsproto.go +++ b/lxd/migration/wsproto.go @@ -7,7 +7,7 @@ import ( "github.com/gorilla/websocket" "google.golang.org/protobuf/proto" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // ProtoRecv gets a protobuf message from a websocket diff --git a/lxd/network/driver_bridge.go b/lxd/network/driver_bridge.go index 6ccbfed79e95..01f4d6140267 100644 --- a/lxd/network/driver_bridge.go +++ b/lxd/network/driver_bridge.go @@ -18,27 +18,27 @@ import ( "github.com/mdlayher/netx/eui64" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/apparmor" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/daemon" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/device/nictype" - "github.com/lxc/lxd/lxd/dnsmasq" - "github.com/lxc/lxd/lxd/dnsmasq/dhcpalloc" - firewallDrivers "github.com/lxc/lxd/lxd/firewall/drivers" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network/openvswitch" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/subprocess" - "github.com/lxc/lxd/shared/validate" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/apparmor" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/daemon" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/device/nictype" + "github.com/canonical/lxd/lxd/dnsmasq" + "github.com/canonical/lxd/lxd/dnsmasq/dhcpalloc" + firewallDrivers "github.com/canonical/lxd/lxd/firewall/drivers" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network/openvswitch" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/subprocess" + "github.com/canonical/lxd/shared/validate" + "github.com/canonical/lxd/shared/version" ) // ForkdnsServersListPath defines the path that contains the forkdns server candidate file. diff --git a/lxd/network/driver_common.go b/lxd/network/driver_common.go index 6a36f276a6e7..154576094613 100644 --- a/lxd/network/driver_common.go +++ b/lxd/network/driver_common.go @@ -8,18 +8,18 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/validate" ) // Info represents information about a network driver. diff --git a/lxd/network/network_interface.go b/lxd/network/network_interface.go index 01acd3687200..c583a440126d 100644 --- a/lxd/network/network_interface.go +++ b/lxd/network/network_interface.go @@ -3,12 +3,12 @@ package network import ( "net" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // Type represents a LXD network driver type. diff --git a/lxd/network/network_load.go b/lxd/network/network_load.go index 208fcc98758d..96204a20ae0b 100644 --- a/lxd/network/network_load.go +++ b/lxd/network/network_load.go @@ -1,7 +1,7 @@ package network import ( - "github.com/lxc/lxd/lxd/state" + "github.com/canonical/lxd/lxd/state" ) var drivers = map[string]func() Network{ diff --git a/lxd/network/network_utils.go b/lxd/network/network_utils.go index 6ba522d79c0c..80504c747461 100644 --- a/lxd/network/network_utils.go +++ b/lxd/network/network_utils.go @@ -15,21 +15,21 @@ import ( "sync" "time" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/device/nictype" - "github.com/lxc/lxd/lxd/dnsmasq" - "github.com/lxc/lxd/lxd/dnsmasq/dhcpalloc" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/device/nictype" + "github.com/canonical/lxd/lxd/dnsmasq" + "github.com/canonical/lxd/lxd/dnsmasq/dhcpalloc" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) func networkValidPort(value string) error { diff --git a/lxd/network/network_utils_bridge.go b/lxd/network/network_utils_bridge.go index aaebbe1c25ff..79ccf353084e 100644 --- a/lxd/network/network_utils_bridge.go +++ b/lxd/network/network_utils_bridge.go @@ -5,9 +5,9 @@ import ( "io/ioutil" "strings" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/network/openvswitch" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/network/openvswitch" + "github.com/canonical/lxd/shared" ) // BridgeVLANFilteringStatus returns whether VLAN filtering is enabled on a bridge interface. diff --git a/lxd/network/network_utils_sriov.go b/lxd/network/network_utils_sriov.go index 53fd470f21bc..df462c349aeb 100644 --- a/lxd/network/network_utils_sriov.go +++ b/lxd/network/network_utils_sriov.go @@ -9,13 +9,13 @@ import ( "sync" "time" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/device/pci" - "github.com/lxc/lxd/lxd/ip" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/device/pci" + "github.com/canonical/lxd/lxd/ip" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // sriovReservedDevicesMutex used to coordinate access for checking reserved devices. diff --git a/lxd/network/openvswitch/ovs.go b/lxd/network/openvswitch/ovs.go index c94b9b770a95..476aeeeaf546 100644 --- a/lxd/network/openvswitch/ovs.go +++ b/lxd/network/openvswitch/ovs.go @@ -3,7 +3,7 @@ package openvswitch import ( "os/exec" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // NewOVS initialises new OVS wrapper. diff --git a/lxd/networks.go b/lxd/networks.go index eedbbb73d569..8dbfed37b40b 100644 --- a/lxd/networks.go +++ b/lxd/networks.go @@ -13,24 +13,24 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - clusterRequest "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/network/openvswitch" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + clusterRequest "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/network/openvswitch" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // Lock to prevent concurent networks creation diff --git a/lxd/networks_utils.go b/lxd/networks_utils.go index 7b2a49dbfefe..b3d1e73691e6 100644 --- a/lxd/networks_utils.go +++ b/lxd/networks_utils.go @@ -1,11 +1,11 @@ package main import ( - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/logger" ) func networkAutoAttach(cluster *db.Cluster, devName string) error { diff --git a/lxd/node/config.go b/lxd/node/config.go index 276d55763d99..ec12a8bbe5a9 100644 --- a/lxd/node/config.go +++ b/lxd/node/config.go @@ -3,11 +3,11 @@ package node import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/config" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/config" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/validate" ) // Config holds node-local configuration values for a certain LXD instance. diff --git a/lxd/node/config_test.go b/lxd/node/config_test.go index fb20433f97b8..446467d7ef2c 100644 --- a/lxd/node/config_test.go +++ b/lxd/node/config_test.go @@ -3,8 +3,8 @@ package node_test import ( "testing" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/node/raft.go b/lxd/node/raft.go index 77cf61082bbe..37c4416d6f0a 100644 --- a/lxd/node/raft.go +++ b/lxd/node/raft.go @@ -3,7 +3,7 @@ package node import ( "github.com/canonical/go-dqlite/client" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" ) // DetermineRaftNode figures out what raft node ID and address we have, if any. diff --git a/lxd/node/raft_test.go b/lxd/node/raft_test.go index de87befd7159..36579c9a8a25 100644 --- a/lxd/node/raft_test.go +++ b/lxd/node/raft_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/node" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/node" ) // The raft identity (ID and address) of a node depends on the value of diff --git a/lxd/operations.go b/lxd/operations.go index 4d5822aa8aac..ee3540d0ffa6 100644 --- a/lxd/operations.go +++ b/lxd/operations.go @@ -11,19 +11,19 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) var operationCmd = APIEndpoint{ diff --git a/lxd/operations/linux.go b/lxd/operations/linux.go index 8c8deaaaa45f..2164cf82e9f7 100644 --- a/lxd/operations/linux.go +++ b/lxd/operations/linux.go @@ -6,7 +6,7 @@ package operations import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" ) func registerDBOperation(op *Operation, opType db.OperationType) error { diff --git a/lxd/operations/notlinux.go b/lxd/operations/notlinux.go index a3409178825e..8b357d44a752 100644 --- a/lxd/operations/notlinux.go +++ b/lxd/operations/notlinux.go @@ -6,7 +6,7 @@ package operations import ( "fmt" - "github.com/lxc/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db" ) func registerDBOperation(op *Operation, opType db.OperationType) error { diff --git a/lxd/operations/operations.go b/lxd/operations/operations.go index 3ea7d30c0136..93f611073fe9 100644 --- a/lxd/operations/operations.go +++ b/lxd/operations/operations.go @@ -10,16 +10,16 @@ import ( "github.com/pborman/uuid" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/events" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/cancel" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/events" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/cancel" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) var debug bool diff --git a/lxd/operations/response.go b/lxd/operations/response.go index e3a9f50d2f12..09ecb2b2e91d 100644 --- a/lxd/operations/response.go +++ b/lxd/operations/response.go @@ -6,12 +6,12 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/version" ) // Operation response diff --git a/lxd/operations/websocket.go b/lxd/operations/websocket.go index 46c83473cd64..15427ed0d72a 100644 --- a/lxd/operations/websocket.go +++ b/lxd/operations/websocket.go @@ -6,8 +6,8 @@ import ( "github.com/gorilla/websocket" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/shared" ) type operationWebSocket struct { diff --git a/lxd/patches.go b/lxd/patches.go index d801741cdb43..9b90492aa14c 100644 --- a/lxd/patches.go +++ b/lxd/patches.go @@ -16,24 +16,24 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/db/query" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/network" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/rsync" - driver "github.com/lxc/lxd/lxd/storage" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/db/query" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/network" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/rsync" + driver "github.com/canonical/lxd/lxd/storage" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) type patchStage int diff --git a/lxd/patches_utils.go b/lxd/patches_utils.go index cb4c8a523751..4d673b17207f 100644 --- a/lxd/patches_utils.go +++ b/lxd/patches_utils.go @@ -10,12 +10,12 @@ import ( "strconv" "strings" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" ) // For 'btrfs' storage backend. diff --git a/lxd/profiles.go b/lxd/profiles.go index 71d45c097d27..9df97cf5227e 100644 --- a/lxd/profiles.go +++ b/lxd/profiles.go @@ -12,20 +12,20 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var profilesCmd = APIEndpoint{ diff --git a/lxd/profiles_utils.go b/lxd/profiles_utils.go index 177563bf803f..13a5c096ac79 100644 --- a/lxd/profiles_utils.go +++ b/lxd/profiles_utils.go @@ -5,13 +5,13 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) func doProfileUpdate(d *Daemon, projectName string, name string, id int64, profile *api.Profile, req api.ProfilePut) error { diff --git a/lxd/project/permissions.go b/lxd/project/permissions.go index 56360db1c250..d03e8c0d22e0 100644 --- a/lxd/project/permissions.go +++ b/lxd/project/permissions.go @@ -9,13 +9,13 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - deviceconfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/rbac" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/db" + deviceconfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/rbac" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" ) // AllowInstanceCreation returns an error if any project-specific limit or diff --git a/lxd/project/permissions_test.go b/lxd/project/permissions_test.go index 3327fcada096..06a3911e7f50 100644 --- a/lxd/project/permissions_test.go +++ b/lxd/project/permissions_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared/api" ) // If there's no limit configured on the project, the check passes. diff --git a/lxd/project/project.go b/lxd/project/project.go index ee5ed92e0943..b605266a46e8 100644 --- a/lxd/project/project.go +++ b/lxd/project/project.go @@ -6,8 +6,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/shared" ) // Default is the string used for a default project. diff --git a/lxd/project/project_test.go b/lxd/project/project_test.go index 43532a9f3bd3..8737dd2f875f 100644 --- a/lxd/project/project_test.go +++ b/lxd/project/project_test.go @@ -3,7 +3,7 @@ package project_test import ( "fmt" - "github.com/lxc/lxd/lxd/project" + "github.com/canonical/lxd/lxd/project" ) func ExampleInstance() { diff --git a/lxd/rbac/requests.go b/lxd/rbac/requests.go index aeea2acc1725..feb71a6ca97f 100644 --- a/lxd/rbac/requests.go +++ b/lxd/rbac/requests.go @@ -3,8 +3,8 @@ package rbac import ( "net/http" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/shared" ) // UserIsAdmin checks whether the requestor is a global admin. diff --git a/lxd/rbac/server.go b/lxd/rbac/server.go index d8e1054acb67..bf6a0721985e 100644 --- a/lxd/rbac/server.go +++ b/lxd/rbac/server.go @@ -19,8 +19,8 @@ import ( "gopkg.in/macaroon-bakery.v2/httpbakery" "gopkg.in/macaroon-bakery.v2/httpbakery/agent" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) type rbacResource struct { diff --git a/lxd/request/request.go b/lxd/request/request.go index ec680b775345..c9a40ae85d3a 100644 --- a/lxd/request/request.go +++ b/lxd/request/request.go @@ -5,7 +5,7 @@ import ( "net" "net/http" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // CreateRequestor extracts the lifecycle event requestor data from an http.Request context diff --git a/lxd/resources.go b/lxd/resources.go index 37b1095e244b..571b56ca3362 100644 --- a/lxd/resources.go +++ b/lxd/resources.go @@ -5,10 +5,10 @@ import ( "github.com/gorilla/mux" - "github.com/lxc/lxd/lxd/resources" - "github.com/lxc/lxd/lxd/response" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/resources" + "github.com/canonical/lxd/lxd/response" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared/api" ) var api10ResourcesCmd = APIEndpoint{ diff --git a/lxd/resources/cpu.go b/lxd/resources/cpu.go index 423eb2c36bf7..007e63fa46e5 100644 --- a/lxd/resources/cpu.go +++ b/lxd/resources/cpu.go @@ -14,7 +14,7 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) var sysDevicesCPU = "/sys/devices/system/cpu" diff --git a/lxd/resources/gpu.go b/lxd/resources/gpu.go index 78a770e859c5..03093fc9f682 100644 --- a/lxd/resources/gpu.go +++ b/lxd/resources/gpu.go @@ -16,7 +16,7 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) var sysClassDrm = "/sys/class/drm" diff --git a/lxd/resources/memory.go b/lxd/resources/memory.go index 49a33f29fed2..675fecf6e17d 100644 --- a/lxd/resources/memory.go +++ b/lxd/resources/memory.go @@ -10,8 +10,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" ) var sysDevicesNode = "/sys/devices/system/node" diff --git a/lxd/resources/network.go b/lxd/resources/network.go index d8eed15dbfe0..cc2be1a8b44d 100644 --- a/lxd/resources/network.go +++ b/lxd/resources/network.go @@ -14,7 +14,7 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) var sysClassNet = "/sys/class/net" diff --git a/lxd/resources/network_ethtool.go b/lxd/resources/network_ethtool.go index 1938cc8afe19..47633a3a61ff 100644 --- a/lxd/resources/network_ethtool.go +++ b/lxd/resources/network_ethtool.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) type ethtoolReq struct { diff --git a/lxd/resources/pci.go b/lxd/resources/pci.go index 3af3ec30238f..c34aaf8e637e 100644 --- a/lxd/resources/pci.go +++ b/lxd/resources/pci.go @@ -11,7 +11,7 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetPCI returns a filled api.ResourcesPCI struct ready for use by LXD diff --git a/lxd/resources/resources.go b/lxd/resources/resources.go index c35f8876eb41..e428686a3b07 100644 --- a/lxd/resources/resources.go +++ b/lxd/resources/resources.go @@ -3,7 +3,7 @@ package resources import ( "github.com/pkg/errors" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // GetResources returns a filled api.Resources struct ready for use by LXD diff --git a/lxd/resources/storage.go b/lxd/resources/storage.go index eb08f83b297f..1c7656a719b9 100644 --- a/lxd/resources/storage.go +++ b/lxd/resources/storage.go @@ -13,7 +13,7 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) var devDiskByPath = "/dev/disk/by-path" diff --git a/lxd/resources/system.go b/lxd/resources/system.go index a074b548889f..1c4256a9f669 100644 --- a/lxd/resources/system.go +++ b/lxd/resources/system.go @@ -9,7 +9,7 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) var sysClassDMIID = "/sys/class/dmi/id" diff --git a/lxd/resources/usb.go b/lxd/resources/usb.go index 70ef3939e4f6..80baeb42329b 100644 --- a/lxd/resources/usb.go +++ b/lxd/resources/usb.go @@ -9,8 +9,8 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/usbid" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/usbid" ) var sysBusUSB = "/sys/bus/usb/devices" diff --git a/lxd/response.go b/lxd/response.go index 5869114fe36a..c31f3a7f9de9 100644 --- a/lxd/response.go +++ b/lxd/response.go @@ -3,9 +3,9 @@ package main import ( "net/http" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/response" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/response" ) func forwardedResponseToNode(d *Daemon, r *http.Request, node string) response.Response { diff --git a/lxd/response/response.go b/lxd/response/response.go index fd9cee4a341f..4ae19caf46d2 100644 --- a/lxd/response/response.go +++ b/lxd/response/response.go @@ -12,11 +12,11 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) var debug bool diff --git a/lxd/response/smart.go b/lxd/response/smart.go index c97282353df6..b25f8ae8e4af 100644 --- a/lxd/response/smart.go +++ b/lxd/response/smart.go @@ -8,8 +8,8 @@ import ( pkgErrors "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/shared/api" ) var httpResponseErrors = map[int][]error{ diff --git a/lxd/revert/revert_test.go b/lxd/revert/revert_test.go index 20b0fefb7b01..8dcb07bc51b1 100644 --- a/lxd/revert/revert_test.go +++ b/lxd/revert/revert_test.go @@ -3,7 +3,7 @@ package revert_test import ( "fmt" - "github.com/lxc/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/revert" ) func ExampleReverter_fail() { diff --git a/lxd/rsync/rsync.go b/lxd/rsync/rsync.go index ac1c53dad15e..409f84b7a8d9 100644 --- a/lxd/rsync/rsync.go +++ b/lxd/rsync/rsync.go @@ -12,10 +12,10 @@ import ( "github.com/pborman/uuid" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // Debug controls additional debugging in rsync output. diff --git a/lxd/seccomp/seccomp.go b/lxd/seccomp/seccomp.go index 9dc09f314dbb..d2d667d058d4 100644 --- a/lxd/seccomp/seccomp.go +++ b/lxd/seccomp/seccomp.go @@ -21,18 +21,18 @@ import ( liblxc "gopkg.in/lxc/go-lxc.v2" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" - - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/ucred" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/netutils" - "github.com/lxc/lxd/shared/osarch" + _ "github.com/canonical/lxd/lxd/include" + + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/ucred" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/netutils" + "github.com/canonical/lxd/shared/osarch" ) /* diff --git a/lxd/snapshot_common.go b/lxd/snapshot_common.go index a33542f1ed35..f2e6417e6a4b 100644 --- a/lxd/snapshot_common.go +++ b/lxd/snapshot_common.go @@ -8,7 +8,7 @@ import ( "github.com/robfig/cron/v3" - "github.com/lxc/lxd/lxd/util" + "github.com/canonical/lxd/lxd/util" ) // SnapshotScheduleAliases contains the mapping of scheduling aliases to cron syntax diff --git a/lxd/snapshot_common_test.go b/lxd/snapshot_common_test.go index 2a08eaf2bf35..3e657e975bf6 100644 --- a/lxd/snapshot_common_test.go +++ b/lxd/snapshot_common_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/suite" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/revert" ) func (suite *containerTestSuite) TestSnapshotScheduling() { diff --git a/lxd/state/notlinux.go b/lxd/state/notlinux.go index 6a1a11a143d2..af714abf4af4 100644 --- a/lxd/state/notlinux.go +++ b/lxd/state/notlinux.go @@ -6,7 +6,7 @@ package state import ( "context" - "github.com/lxc/lxd/lxd/events" + "github.com/canonical/lxd/lxd/events" ) // State here is just an empty shim to statisfy dependencies. diff --git a/lxd/state/state.go b/lxd/state/state.go index 5d6d8f978f22..23b22116568e 100644 --- a/lxd/state/state.go +++ b/lxd/state/state.go @@ -8,15 +8,15 @@ import ( "net/http" "net/url" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/endpoints" - "github.com/lxc/lxd/lxd/events" - "github.com/lxc/lxd/lxd/firewall" - "github.com/lxc/lxd/lxd/fsmonitor" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/maas" - "github.com/lxc/lxd/lxd/sys" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/endpoints" + "github.com/canonical/lxd/lxd/events" + "github.com/canonical/lxd/lxd/firewall" + "github.com/canonical/lxd/lxd/fsmonitor" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/maas" + "github.com/canonical/lxd/lxd/sys" + "github.com/canonical/lxd/shared" ) // State is a gateway to the two main stateful components of LXD, the database diff --git a/lxd/state/testing.go b/lxd/state/testing.go index f750884ecd8d..6242363ae5d2 100644 --- a/lxd/state/testing.go +++ b/lxd/state/testing.go @@ -7,9 +7,9 @@ import ( "context" "testing" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/firewall" - "github.com/lxc/lxd/lxd/sys" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/firewall" + "github.com/canonical/lxd/lxd/sys" ) // NewTestState returns a State object initialized with testable instances of diff --git a/lxd/storage.go b/lxd/storage.go index 7bbfe0cbe4c6..5d1bf69f304e 100644 --- a/lxd/storage.go +++ b/lxd/storage.go @@ -9,16 +9,16 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // Simply cache used to storage the activated drivers on this LXD instance. This diff --git a/lxd/storage/backend_lxd.go b/lxd/storage/backend_lxd.go index c7e12156a211..3ca73603c85f 100644 --- a/lxd/storage/backend_lxd.go +++ b/lxd/storage/backend_lxd.go @@ -13,28 +13,28 @@ import ( log "gopkg.in/inconshreveable/log15.v2" yaml "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/locking" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/lxd/storage/memorypipe" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/locking" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/lxd/storage/memorypipe" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) type lxdBackend struct { diff --git a/lxd/storage/backend_lxd_patches.go b/lxd/storage/backend_lxd_patches.go index 2f05ded5a9b8..ef09d0fce950 100644 --- a/lxd/storage/backend_lxd_patches.go +++ b/lxd/storage/backend_lxd_patches.go @@ -6,14 +6,14 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) var lxdEarlyPatches = map[string]func(b *lxdBackend) error{} diff --git a/lxd/storage/backend_mock.go b/lxd/storage/backend_mock.go index 818ba0295edc..4701d7e06e94 100644 --- a/lxd/storage/backend_mock.go +++ b/lxd/storage/backend_mock.go @@ -4,17 +4,17 @@ import ( "io" "time" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/logger" ) type mockBackend struct { diff --git a/lxd/storage/drivers/driver_btrfs.go b/lxd/storage/drivers/driver_btrfs.go index 8ce8b550547c..987e70e38cb8 100644 --- a/lxd/storage/drivers/driver_btrfs.go +++ b/lxd/storage/drivers/driver_btrfs.go @@ -10,14 +10,14 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" + "github.com/canonical/lxd/shared/version" ) var btrfsVersion string diff --git a/lxd/storage/drivers/driver_btrfs_utils.go b/lxd/storage/drivers/driver_btrfs_utils.go index bab3ffd8bc7d..2f4202a4bb7d 100644 --- a/lxd/storage/drivers/driver_btrfs_utils.go +++ b/lxd/storage/drivers/driver_btrfs_utils.go @@ -15,10 +15,10 @@ import ( "golang.org/x/sys/unix" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" ) // Errors diff --git a/lxd/storage/drivers/driver_btrfs_volumes.go b/lxd/storage/drivers/driver_btrfs_volumes.go index 53e2baa12ea1..2eb8c75a43fc 100644 --- a/lxd/storage/drivers/driver_btrfs_volumes.go +++ b/lxd/storage/drivers/driver_btrfs_volumes.go @@ -16,14 +16,14 @@ import ( log "gopkg.in/inconshreveable/log15.v2" "gopkg.in/yaml.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // CreateVolume creates an empty volume and can optionally fill it by executing the supplied filler function. diff --git a/lxd/storage/drivers/driver_ceph.go b/lxd/storage/drivers/driver_ceph.go index 2906d6409b75..801515354fd2 100644 --- a/lxd/storage/drivers/driver_ceph.go +++ b/lxd/storage/drivers/driver_ceph.go @@ -9,13 +9,13 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) var cephAllowedFilesystems = []string{"btrfs", "ext4", "xfs"} diff --git a/lxd/storage/drivers/driver_ceph_utils.go b/lxd/storage/drivers/driver_ceph_utils.go index 0eaa330cb11b..4b7f70c32deb 100644 --- a/lxd/storage/drivers/driver_ceph_utils.go +++ b/lxd/storage/drivers/driver_ceph_utils.go @@ -15,11 +15,11 @@ import ( "github.com/pborman/uuid" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // cephBlockVolSuffix suffix used for block content type volumes. diff --git a/lxd/storage/drivers/driver_ceph_volumes.go b/lxd/storage/drivers/driver_ceph_volumes.go index f2cb2797d624..e7cc1858bc41 100644 --- a/lxd/storage/drivers/driver_ceph_volumes.go +++ b/lxd/storage/drivers/driver_ceph_volumes.go @@ -15,17 +15,17 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) // CreateVolume creates an empty volume and can optionally fill it by executing the supplied diff --git a/lxd/storage/drivers/driver_cephfs.go b/lxd/storage/drivers/driver_cephfs.go index 98519947cc54..cef877c89f6b 100644 --- a/lxd/storage/drivers/driver_cephfs.go +++ b/lxd/storage/drivers/driver_cephfs.go @@ -10,12 +10,12 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/validate" ) var cephfsVersion string diff --git a/lxd/storage/drivers/driver_cephfs_utils.go b/lxd/storage/drivers/driver_cephfs_utils.go index f46d9424691f..594a45b567c9 100644 --- a/lxd/storage/drivers/driver_cephfs_utils.go +++ b/lxd/storage/drivers/driver_cephfs_utils.go @@ -3,7 +3,7 @@ package drivers import ( "fmt" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // fsExists checks that the Ceph FS instance indeed exists. diff --git a/lxd/storage/drivers/driver_cephfs_volumes.go b/lxd/storage/drivers/driver_cephfs_volumes.go index 81ff84064782..b4c0e3aa53ca 100644 --- a/lxd/storage/drivers/driver_cephfs_volumes.go +++ b/lxd/storage/drivers/driver_cephfs_volumes.go @@ -10,15 +10,15 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) // CreateVolume creates a new storage volume on disk. diff --git a/lxd/storage/drivers/driver_common.go b/lxd/storage/drivers/driver_common.go index 95b080af3c6a..f4edc8ec05c0 100644 --- a/lxd/storage/drivers/driver_common.go +++ b/lxd/storage/drivers/driver_common.go @@ -8,10 +8,10 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) type common struct { diff --git a/lxd/storage/drivers/driver_dir.go b/lxd/storage/drivers/driver_dir.go index 2f94eb57f818..01ce28a57b1b 100644 --- a/lxd/storage/drivers/driver_dir.go +++ b/lxd/storage/drivers/driver_dir.go @@ -7,9 +7,9 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) type dir struct { diff --git a/lxd/storage/drivers/driver_dir_utils.go b/lxd/storage/drivers/driver_dir_utils.go index 9d2ef1fcf61e..b8f4fda8f2b2 100644 --- a/lxd/storage/drivers/driver_dir_utils.go +++ b/lxd/storage/drivers/driver_dir_utils.go @@ -5,9 +5,9 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/storage/quota" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/storage/quota" + "github.com/canonical/lxd/shared/units" ) // withoutGetVolID returns a copy of this struct but with a volIDFunc which will cause quotas to be skipped. diff --git a/lxd/storage/drivers/driver_dir_volumes.go b/lxd/storage/drivers/driver_dir_volumes.go index 003bd8d43f53..158b10490a18 100644 --- a/lxd/storage/drivers/driver_dir_volumes.go +++ b/lxd/storage/drivers/driver_dir_volumes.go @@ -9,15 +9,15 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/lxd/storage/quota" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/lxd/storage/quota" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/units" ) // CreateVolume creates an empty volume and can optionally fill it by executing the supplied diff --git a/lxd/storage/drivers/driver_lvm.go b/lxd/storage/drivers/driver_lvm.go index 2c16ece57bad..de8a843a6840 100644 --- a/lxd/storage/drivers/driver_lvm.go +++ b/lxd/storage/drivers/driver_lvm.go @@ -12,12 +12,12 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) const lvmVgPoolMarker = "lxd_pool" // Indicator tag used to mark volume groups as in use by LXD. @@ -551,7 +551,7 @@ func (d *lvm) Mount() (bool, error) { } // Unmount unmounts the storage pool (this does nothing). -// LVM doesn't currently support unmounting, please see https://github.com/lxc/lxd/issues/9278 +// LVM doesn't currently support unmounting, please see https://github.com/canonical/lxd/issues/9278 func (d *lvm) Unmount() (bool, error) { return false, nil } diff --git a/lxd/storage/drivers/driver_lvm_patches.go b/lxd/storage/drivers/driver_lvm_patches.go index 082aedbafe53..3a12e320c935 100644 --- a/lxd/storage/drivers/driver_lvm_patches.go +++ b/lxd/storage/drivers/driver_lvm_patches.go @@ -6,8 +6,8 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // patchStorageSkipActivation set skipactivation=y on all LXD LVM logical volumes (excluding thin pool volumes). diff --git a/lxd/storage/drivers/driver_lvm_utils.go b/lxd/storage/drivers/driver_lvm_utils.go index 463e6055194c..fbb04fccfd67 100644 --- a/lxd/storage/drivers/driver_lvm_utils.go +++ b/lxd/storage/drivers/driver_lvm_utils.go @@ -11,12 +11,12 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/locking" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/locking" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/version" ) // lvmBlockVolSuffix suffix used for block content type volumes. diff --git a/lxd/storage/drivers/driver_lvm_volumes.go b/lxd/storage/drivers/driver_lvm_volumes.go index 53c13dd180a5..15318793a7cc 100644 --- a/lxd/storage/drivers/driver_lvm_volumes.go +++ b/lxd/storage/drivers/driver_lvm_volumes.go @@ -14,15 +14,15 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/validate" ) // CreateVolume creates an empty volume and can optionally fill it by executing the supplied filler function. diff --git a/lxd/storage/drivers/driver_mock.go b/lxd/storage/drivers/driver_mock.go index 76ce6b126839..69f3746aa219 100644 --- a/lxd/storage/drivers/driver_mock.go +++ b/lxd/storage/drivers/driver_mock.go @@ -3,12 +3,12 @@ package drivers import ( "io" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" ) type mock struct { diff --git a/lxd/storage/drivers/driver_zfs.go b/lxd/storage/drivers/driver_zfs.go index 095740618199..3c92ad57581e 100644 --- a/lxd/storage/drivers/driver_zfs.go +++ b/lxd/storage/drivers/driver_zfs.go @@ -10,14 +10,14 @@ import ( "github.com/pkg/errors" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" + "github.com/canonical/lxd/shared/version" ) var zfsVersion string diff --git a/lxd/storage/drivers/driver_zfs_patches.go b/lxd/storage/drivers/driver_zfs_patches.go index dcc638f008aa..bf235f71fb4f 100644 --- a/lxd/storage/drivers/driver_zfs_patches.go +++ b/lxd/storage/drivers/driver_zfs_patches.go @@ -4,7 +4,7 @@ import ( "path/filepath" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) func (d *zfs) patchStorageCreateVM() error { diff --git a/lxd/storage/drivers/driver_zfs_utils.go b/lxd/storage/drivers/driver_zfs_utils.go index 8e6134578509..eb425f87a7e7 100644 --- a/lxd/storage/drivers/driver_zfs_utils.go +++ b/lxd/storage/drivers/driver_zfs_utils.go @@ -10,10 +10,10 @@ import ( "github.com/pborman/uuid" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" ) const ( diff --git a/lxd/storage/drivers/driver_zfs_volumes.go b/lxd/storage/drivers/driver_zfs_volumes.go index 174ca1294eb1..28e1c071a7c5 100644 --- a/lxd/storage/drivers/driver_zfs_volumes.go +++ b/lxd/storage/drivers/driver_zfs_volumes.go @@ -18,17 +18,17 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/instance/operationlock" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/instance/operationlock" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) // CreateVolume creates an empty volume and can optionally fill it by executing the supplied diff --git a/lxd/storage/drivers/generic_vfs.go b/lxd/storage/drivers/generic_vfs.go index 94388b98ebcd..f803c33eac4b 100644 --- a/lxd/storage/drivers/generic_vfs.go +++ b/lxd/storage/drivers/generic_vfs.go @@ -13,17 +13,17 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" ) // genericVolumeBlockExtension extension used for generic block volume disk files. diff --git a/lxd/storage/drivers/interface.go b/lxd/storage/drivers/interface.go index 60c0e83590df..064394f00613 100644 --- a/lxd/storage/drivers/interface.go +++ b/lxd/storage/drivers/interface.go @@ -3,14 +3,14 @@ package drivers import ( "io" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" + "github.com/canonical/lxd/shared/logger" ) // driver is the extended internal interface. diff --git a/lxd/storage/drivers/load.go b/lxd/storage/drivers/load.go index 38e41058f631..59118d306d53 100644 --- a/lxd/storage/drivers/load.go +++ b/lxd/storage/drivers/load.go @@ -1,8 +1,8 @@ package drivers import ( - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/shared/logger" ) var drivers = map[string]func() driver{ diff --git a/lxd/storage/drivers/utils.go b/lxd/storage/drivers/utils.go index be89fe790b19..319a5b1296d1 100644 --- a/lxd/storage/drivers/utils.go +++ b/lxd/storage/drivers/utils.go @@ -14,10 +14,10 @@ import ( "github.com/pkg/errors" "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" ) // MinBlockBoundary minimum block boundary size to use. diff --git a/lxd/storage/drivers/utils_cgo.go b/lxd/storage/drivers/utils_cgo.go index 51c304a7d75c..6c970b704ed4 100644 --- a/lxd/storage/drivers/utils_cgo.go +++ b/lxd/storage/drivers/utils_cgo.go @@ -11,7 +11,7 @@ import ( "github.com/pkg/errors" // Used by cgo - _ "github.com/lxc/lxd/lxd/include" + _ "github.com/canonical/lxd/lxd/include" ) /* diff --git a/lxd/storage/drivers/volume.go b/lxd/storage/drivers/volume.go index 170fd848520f..50cc11a8f78d 100644 --- a/lxd/storage/drivers/volume.go +++ b/lxd/storage/drivers/volume.go @@ -6,13 +6,13 @@ import ( "github.com/pkg/errors" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/locking" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/refcount" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/units" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/locking" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/refcount" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/units" ) // tmpVolSuffix Suffix to use for any temporary volumes created by LXD. diff --git a/lxd/storage/filesystem/fs.go b/lxd/storage/filesystem/fs.go index 79961bfd210f..80b8ac569f44 100644 --- a/lxd/storage/filesystem/fs.go +++ b/lxd/storage/filesystem/fs.go @@ -10,7 +10,7 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared/logger" ) // Filesystem magic numbers. diff --git a/lxd/storage/load.go b/lxd/storage/load.go index 39c3b788d3ba..fb1a44971c96 100644 --- a/lxd/storage/load.go +++ b/lxd/storage/load.go @@ -5,15 +5,15 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" ) // PoolIDTemporary is used to indicate a temporary pool instance that is not in the database. diff --git a/lxd/storage/pool_interface.go b/lxd/storage/pool_interface.go index a1cfbe10a30e..add0944d449c 100644 --- a/lxd/storage/pool_interface.go +++ b/lxd/storage/pool_interface.go @@ -4,15 +4,15 @@ import ( "io" "time" - "github.com/lxc/lxd/lxd/backup" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/instancewriter" + "github.com/canonical/lxd/lxd/backup" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/instancewriter" ) // MountInfo represents info about the result of a mount operation. diff --git a/lxd/storage/quota/projectquota.go b/lxd/storage/quota/projectquota.go index 81828a2f8d47..28f607ec41b4 100644 --- a/lxd/storage/quota/projectquota.go +++ b/lxd/storage/quota/projectquota.go @@ -10,7 +10,7 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) /* diff --git a/lxd/storage/storage.go b/lxd/storage/storage.go index f8b5658b10a5..7d0f13279ee3 100644 --- a/lxd/storage/storage.go +++ b/lxd/storage/storage.go @@ -3,9 +3,9 @@ package storage import ( "os" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/shared" ) // InstancePath returns the directory of an instance or snapshot. diff --git a/lxd/storage/utils.go b/lxd/storage/utils.go index 78f0609ef7ce..4bfae530ab09 100644 --- a/lxd/storage/utils.go +++ b/lxd/storage/utils.go @@ -12,24 +12,24 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/instance/instancetype" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/lxd/node" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/rsync" - "github.com/lxc/lxd/lxd/state" - "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/ioprogress" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/logging" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/instance/instancetype" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/lxd/node" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/rsync" + "github.com/canonical/lxd/lxd/state" + "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/ioprogress" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/logging" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) // ValidName validates the provided name, and returns an error if it's not a valid storage name. diff --git a/lxd/storage_migration.go b/lxd/storage_migration.go index aaa3a9eb4e5e..c7f1bd24fd8e 100644 --- a/lxd/storage_migration.go +++ b/lxd/storage_migration.go @@ -3,11 +3,11 @@ package main import ( "time" - "github.com/lxc/lxd/lxd/db" - deviceConfig "github.com/lxc/lxd/lxd/device/config" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/migration" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/db" + deviceConfig "github.com/canonical/lxd/lxd/device/config" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/migration" + "github.com/canonical/lxd/shared" ) func snapshotProtobufToInstanceArgs(inst instance.Instance, snap *migration.Snapshot) db.InstanceArgs { diff --git a/lxd/storage_pools.go b/lxd/storage_pools.go index 39278e6c14a4..b5d95704880e 100644 --- a/lxd/storage_pools.go +++ b/lxd/storage_pools.go @@ -11,20 +11,20 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/client" - "github.com/lxc/lxd/lxd/cluster" - clusterRequest "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/lifecycle" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/request" - "github.com/lxc/lxd/lxd/response" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/client" + "github.com/canonical/lxd/lxd/cluster" + clusterRequest "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/lifecycle" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/request" + "github.com/canonical/lxd/lxd/response" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) // Lock to prevent concurent storage pools creation diff --git a/lxd/storage_pools_config.go b/lxd/storage_pools_config.go index 68a0a4f19b69..17ec381f0702 100644 --- a/lxd/storage_pools_config.go +++ b/lxd/storage_pools_config.go @@ -7,10 +7,10 @@ import ( "golang.org/x/sys/unix" - storageDrivers "github.com/lxc/lxd/lxd/storage/drivers" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/units" - "github.com/lxc/lxd/shared/validate" + storageDrivers "github.com/canonical/lxd/lxd/storage/drivers" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/units" + "github.com/canonical/lxd/shared/validate" ) var storagePoolConfigKeys = map[string]func(value string) error{ diff --git a/lxd/storage_pools_utils.go b/lxd/storage_pools_utils.go index 5c85e343af16..c9ba5bccf62d 100644 --- a/lxd/storage_pools_utils.go +++ b/lxd/storage_pools_utils.go @@ -6,14 +6,14 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster/request" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/cluster/request" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" ) // storagePoolDBCreate creates a storage pool DB entry and returns the created Pool ID. diff --git a/lxd/storage_volumes.go b/lxd/storage_volumes.go index 5bd66552b534..bd32c9941cc5 100644 --- a/lxd/storage_volumes.go +++ b/lxd/storage_volumes.go @@ -11,21 +11,21 @@ import ( log "gopkg.in/inconshreveable/log15.v2" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + "github.com/canonical/lxd/lxd/revert" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" "github.com/gorilla/mux" "github.com/gorilla/websocket" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - "github.com/lxc/lxd/lxd/revert" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" ) var storagePoolVolumesCmd = APIEndpoint{ diff --git a/lxd/storage_volumes_snapshot.go b/lxd/storage_volumes_snapshot.go index 35b88ae69123..aa8b1741d083 100644 --- a/lxd/storage_volumes_snapshot.go +++ b/lxd/storage_volumes_snapshot.go @@ -14,19 +14,19 @@ import ( "github.com/pkg/errors" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cluster" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/operations" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/response" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/lxd/task" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/cluster" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/operations" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/response" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/lxd/task" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/version" ) var storagePoolVolumeSnapshotsTypeCmd = APIEndpoint{ diff --git a/lxd/storage_volumes_utils.go b/lxd/storage_volumes_utils.go index 807f11db1f8e..178be1c9ea4d 100644 --- a/lxd/storage_volumes_utils.go +++ b/lxd/storage_volumes_utils.go @@ -3,14 +3,14 @@ package main import ( "fmt" - "github.com/lxc/lxd/lxd/db" - "github.com/lxc/lxd/lxd/instance" - "github.com/lxc/lxd/lxd/project" - "github.com/lxc/lxd/lxd/state" - storagePools "github.com/lxc/lxd/lxd/storage" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" - "github.com/lxc/lxd/shared/version" + "github.com/canonical/lxd/lxd/db" + "github.com/canonical/lxd/lxd/instance" + "github.com/canonical/lxd/lxd/project" + "github.com/canonical/lxd/lxd/state" + storagePools "github.com/canonical/lxd/lxd/storage" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" + "github.com/canonical/lxd/shared/version" ) var supportedVolumeTypes = []int{db.StoragePoolVolumeTypeContainer, db.StoragePoolVolumeTypeVM, db.StoragePoolVolumeTypeCustom, db.StoragePoolVolumeTypeImage} diff --git a/lxd/swagger.go b/lxd/swagger.go index 31470c432140..1a6b42dba2a5 100644 --- a/lxd/swagger.go +++ b/lxd/swagger.go @@ -11,13 +11,13 @@ // // Version: 1.0 // License: Apache-2.0 https://www.apache.org/licenses/LICENSE-2.0 -// Contact: LXD upstream https://github.com/lxc/lxd +// Contact: LXD upstream https://github.com/canonical/lxd // // swagger:meta package main import ( - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/shared/api" ) // Common error definitions. diff --git a/lxd/sys/apparmor.go b/lxd/sys/apparmor.go index 3c65687719e5..501d4624de1b 100644 --- a/lxd/sys/apparmor.go +++ b/lxd/sys/apparmor.go @@ -12,9 +12,9 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" "github.com/syndtr/gocapability/capability" ) diff --git a/lxd/sys/os.go b/lxd/sys/os.go index a9c490cc1eb6..afa4657e85ff 100644 --- a/lxd/sys/os.go +++ b/lxd/sys/os.go @@ -11,12 +11,12 @@ import ( log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/lxd/cgroup" - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/lxd/cgroup" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" ) // InotifyTargetInfo records the inotify information associated with a given diff --git a/lxd/task/group_test.go b/lxd/task/group_test.go index 26a089a484e2..0f08a5404475 100644 --- a/lxd/task/group_test.go +++ b/lxd/task/group_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/task" + "github.com/canonical/lxd/lxd/task" "github.com/stretchr/testify/assert" ) diff --git a/lxd/task/task_test.go b/lxd/task/task_test.go index 3ede9bc3a55a..873166164323 100644 --- a/lxd/task/task_test.go +++ b/lxd/task/task_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/lxc/lxd/lxd/task" + "github.com/canonical/lxd/lxd/task" "github.com/stretchr/testify/assert" ) diff --git a/lxd/ucred/ucred.go b/lxd/ucred/ucred.go index 48cc92a2114e..141071cf6cf1 100644 --- a/lxd/ucred/ucred.go +++ b/lxd/ucred/ucred.go @@ -7,8 +7,8 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/lxd/endpoints/listeners" - "github.com/lxc/lxd/lxd/request" + "github.com/canonical/lxd/lxd/endpoints/listeners" + "github.com/canonical/lxd/lxd/request" ) // ErrNotUnixSocket is returned when the underlying connection isn't a unix socket. diff --git a/lxd/util/config.go b/lxd/util/config.go index 334b51954618..255f15898fa1 100644 --- a/lxd/util/config.go +++ b/lxd/util/config.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // CompareConfigs compares two config maps and returns an error if they differ. diff --git a/lxd/util/config_test.go b/lxd/util/config_test.go index 4c6e25194423..f4800a225a79 100644 --- a/lxd/util/config_test.go +++ b/lxd/util/config_test.go @@ -3,7 +3,7 @@ package util_test import ( "testing" - "github.com/lxc/lxd/lxd/util" + "github.com/canonical/lxd/lxd/util" "github.com/stretchr/testify/assert" ) diff --git a/lxd/util/encryption.go b/lxd/util/encryption.go index 87b717e27445..2fd67dc8902f 100644 --- a/lxd/util/encryption.go +++ b/lxd/util/encryption.go @@ -7,7 +7,7 @@ import ( "io/ioutil" "path/filepath" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" "github.com/pkg/errors" "golang.org/x/crypto/scrypt" diff --git a/lxd/util/http.go b/lxd/util/http.go index 1cc1ce137949..14a71f4f62b7 100644 --- a/lxd/util/http.go +++ b/lxd/util/http.go @@ -20,8 +20,8 @@ import ( "golang.org/x/sys/unix" log "gopkg.in/inconshreveable/log15.v2" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // DebugJSON helper to log JSON. diff --git a/lxd/util/kernel.go b/lxd/util/kernel.go index eb82d9c8d374..3a7e3287c0a9 100644 --- a/lxd/util/kernel.go +++ b/lxd/util/kernel.go @@ -6,7 +6,7 @@ import ( "os" "strings" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // LoadModule loads the kernel module with the given name, by invoking diff --git a/lxd/util/net.go b/lxd/util/net.go index 9e01a6559452..73c54d7b7409 100644 --- a/lxd/util/net.go +++ b/lxd/util/net.go @@ -13,8 +13,8 @@ import ( "golang.org/x/sys/unix" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/logger" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/logger" ) // InMemoryNetwork creates a fully in-memory listener and dial function. diff --git a/lxd/util/net_test.go b/lxd/util/net_test.go index 8ca003536176..eb684bbcbeb3 100644 --- a/lxd/util/net_test.go +++ b/lxd/util/net_test.go @@ -6,8 +6,8 @@ import ( "net" "testing" - "github.com/lxc/lxd/lxd/util" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/lxd/util" + "github.com/canonical/lxd/shared" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/lxd/util/storage.go b/lxd/util/storage.go index ddb78825c9e0..7384c543b68c 100644 --- a/lxd/util/storage.go +++ b/lxd/util/storage.go @@ -1,9 +1,9 @@ package util import ( - "github.com/lxc/lxd/lxd/storage/filesystem" - "github.com/lxc/lxd/shared" - "github.com/lxc/lxd/shared/api" + "github.com/canonical/lxd/lxd/storage/filesystem" + "github.com/canonical/lxd/shared" + "github.com/canonical/lxd/shared/api" ) // PoolType represents a type of storage pool (local, remote or any). diff --git a/lxd/util/sys.go b/lxd/util/sys.go index 7e3160ed1378..25ad741b3f5f 100644 --- a/lxd/util/sys.go +++ b/lxd/util/sys.go @@ -13,9 +13,9 @@ import ( log "gopkg.in/inconshreveable/log15.v2" liblxc "gopkg.in/lxc/go-lxc.v2" - "github.com/lxc/lxd/shared/idmap" - "github.com/lxc/lxd/shared/logger" - "github.com/lxc/lxd/shared/osarch" + "github.com/canonical/lxd/shared/idmap" + "github.com/canonical/lxd/shared/logger" + "github.com/canonical/lxd/shared/osarch" ) // GetArchitectures returns the list of supported architectures. diff --git a/lxd/vsock/vsock.go b/lxd/vsock/vsock.go index eeea94f968c0..6bef62cd3ee8 100644 --- a/lxd/vsock/vsock.go +++ b/lxd/vsock/vsock.go @@ -9,7 +9,7 @@ import ( "github.com/mdlayher/vsock" - "github.com/lxc/lxd/shared" + "github.com/canonical/lxd/shared" ) // Dial connects to a remote vsock. diff --git a/po/bg.po b/po/bg.po index b13954744a74..204693486840 100644 --- a/po/bg.po +++ b/po/bg.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/ca.po b/po/ca.po index 702cf3ecf180..1b3f5a3d741d 100644 --- a/po/ca.po +++ b/po/ca.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/de.po b/po/de.po index c0b7ef31a1c0..a10180c145c1 100644 --- a/po/de.po +++ b/po/de.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: LXD\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: 2019-12-12 14:53+0000\n" "Last-Translator: Stéphane Graber \n" "Language-Team: German \n" "Language-Team: Greek \n" "Language-Team: Spanish \n" "Language-Team: French \n" "Language-Team: Italian \n" "Language-Team: Japanese /] [/]\n" #~ " Move an existing volume to the specified pool.\n" #~ "\n" -#~ "Unless specified through a prefix, all volume operations affect \"custom" -#~ "\" (user created) volumes.\n" +#~ "Unless specified through a prefix, all volume operations affect " +#~ "\"custom\" (user created) volumes.\n" #~ "\n" #~ "*Examples*\n" #~ "cat pool.yaml | lxc storage edit [:]\n" diff --git a/po/ko.po b/po/ko.po index 20a3cc72de88..65a95bc3e6b4 100644 --- a/po/ko.po +++ b/po/ko.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/lxd.pot b/po/lxd.pot index 642feb28e669..6dffa893fa0e 100644 --- a/po/lxd.pot +++ b/po/lxd.pot @@ -6,8 +6,8 @@ #, fuzzy msgid "" msgstr "Project-Id-Version: lxd\n" - "Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" - "POT-Creation-Date: 2022-01-26 16:18-0500\n" + "Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" + "POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -389,7 +389,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1597,7 +1597,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" diff --git a/po/nb_NO.po b/po/nb_NO.po index 17339fba2183..135f93438d60 100644 --- a/po/nb_NO.po +++ b/po/nb_NO.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/nl.po b/po/nl.po index 7af245121875..4c8ced99b635 100644 --- a/po/nl.po +++ b/po/nl.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: 2019-09-06 07:09+0000\n" "Last-Translator: Stéphane Graber \n" "Language-Team: Dutch \n" "Language-Team: Polish \n" "Language-Team: Portuguese (Brazil) \n" "Language-Team: Russian =2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Generator: Weblate 3.1-dev\n" #: lxc/storage.go:228 @@ -548,7 +548,7 @@ msgstr "Архитектура: %s" msgid "Architecture: %v" msgstr "Архитектура: %s" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1889,7 +1889,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2256,8 +2256,8 @@ msgstr "Копирование образа: %s" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4786,8 +4786,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/sl.po b/po/sl.po index 2339c49bc584..f6bccaf023ff 100644 --- a/po/sl.po +++ b/po/sl.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/sr.po b/po/sr.po index ae12de2ead72..aca2f0871443 100644 --- a/po/sr.po +++ b/po/sr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/sv.po b/po/sv.po index 499363f06163..6f9de3672225 100644 --- a/po/sv.po +++ b/po/sv.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/te.po b/po/te.po index e56d8eb9ece2..3fec1d5c22db 100644 --- a/po/te.po +++ b/po/te.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/tr.po b/po/tr.po index f6f31885b758..79df0a5ec4b9 100644 --- a/po/tr.po +++ b/po/tr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/uk.po b/po/uk.po index bee5e8d91af9..ac134ca69aec 100644 --- a/po/uk.po +++ b/po/uk.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" @@ -403,7 +403,7 @@ msgstr "" msgid "Architecture: %v" msgstr "" -#: lxc/console.go:351 +#: lxc/console.go:357 msgid "As neither could be found, the raw SPICE socket can be found at:" msgstr "" @@ -1710,7 +1710,7 @@ msgstr "" msgid "LXD - Command line client" msgstr "" -#: lxc/console.go:350 +#: lxc/console.go:356 msgid "LXD automatically uses either spicy or remote-viewer when present." msgstr "" @@ -2066,8 +2066,8 @@ msgstr "" msgid "" "Manage storage volumes\n" "\n" -"Unless specified through a prefix, all volume operations affect \"custom" -"\" (user created) volumes." +"Unless specified through a prefix, all volume operations affect " +"\"custom\" (user created) volumes." msgstr "" #: lxc/remote.go:32 lxc/remote.go:33 @@ -4227,8 +4227,8 @@ msgid "" "\"default\" pool.\n" "\n" "lxc storage volume show default container/data\n" -" Will show the properties of the filesystem for a container called \"data" -"\" in the \"default\" pool." +" Will show the properties of the filesystem for a container called " +"\"data\" in the \"default\" pool." msgstr "" #: lxc/storage.go:452 diff --git a/po/zh_Hans.po b/po/zh_Hans.po index af95bae6b5cf..b0475ee25cfc 100644 --- a/po/zh_Hans.po +++ b/po/zh_Hans.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: lxd\n" -"Report-Msgid-Bugs-To: lxc-devel@lists.linuxcontainers.org\n" -"POT-Creation-Date: 2022-01-26 16:18-0500\n" +"Report-Msgid-Bugs-To: lxd@lists.canonical.com\n" +"POT-Creation-Date: 2024-07-05 16:53-0400\n" "PO-Revision-Date: 2018-09-11 19:15+0000\n" "Last-Translator: 0x0916 \n" "Language-Team: Chinese (Simplified) Configuring btrfs backend in ${LXD_DIR}" } btrfs_teardown() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 diff --git a/test/backends/ceph.sh b/test/backends/ceph.sh index c886a9da9986..4d5511f33e93 100644 --- a/test/backends/ceph.sh +++ b/test/backends/ceph.sh @@ -1,5 +1,5 @@ ceph_setup() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 @@ -8,19 +8,19 @@ ceph_setup() { } ceph_configure() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 echo "==> Configuring CEPH backend in ${LXD_DIR}" - lxc storage create "lxdtest-$(basename "${LXD_DIR}")" ceph volume.size=25MB ceph.osd.pg_num=16 + lxc storage create "lxdtest-$(basename "${LXD_DIR}")" ceph volume.size=25MiB ceph.osd.pg_num=8 lxc profile device add default root disk path="/" pool="lxdtest-$(basename "${LXD_DIR}")" } ceph_teardown() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 diff --git a/test/backends/dir.sh b/test/backends/dir.sh index f4f5af772ed5..4a8dfffe2568 100644 --- a/test/backends/dir.sh +++ b/test/backends/dir.sh @@ -4,7 +4,7 @@ # Any necessary backend-specific setup dir_setup() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 @@ -14,7 +14,7 @@ dir_setup() { # Do the API voodoo necessary to configure LXD to use this backend dir_configure() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 @@ -26,7 +26,7 @@ dir_configure() { } dir_teardown() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 diff --git a/test/backends/lvm.sh b/test/backends/lvm.sh index b9cbe846161c..3b61293c42eb 100644 --- a/test/backends/lvm.sh +++ b/test/backends/lvm.sh @@ -1,5 +1,5 @@ lvm_setup() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 @@ -8,19 +8,19 @@ lvm_setup() { } lvm_configure() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 echo "==> Configuring lvm backend in ${LXD_DIR}" - lxc storage create "lxdtest-$(basename "${LXD_DIR}")" lvm volume.size=25MB + lxc storage create "lxdtest-$(basename "${LXD_DIR}")" lvm volume.size=25MiB size=3GiB lxc profile device add default root disk path="/" pool="lxdtest-$(basename "${LXD_DIR}")" } lvm_teardown() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 diff --git a/test/backends/zfs.sh b/test/backends/zfs.sh index 3545e585b1b3..5e55f0160c13 100644 --- a/test/backends/zfs.sh +++ b/test/backends/zfs.sh @@ -1,5 +1,5 @@ zfs_setup() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 @@ -8,19 +8,19 @@ zfs_setup() { } zfs_configure() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 echo "==> Configuring ZFS backend in ${LXD_DIR}" - lxc storage create "lxdtest-$(basename "${LXD_DIR}")" zfs size=100GB + lxc storage create "lxdtest-$(basename "${LXD_DIR}")" zfs size=1GiB lxc profile device add default root disk path="/" pool="lxdtest-$(basename "${LXD_DIR}")" } zfs_teardown() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR LXD_DIR=$1 diff --git a/test/godeps.list b/test/godeps.list index c1fc7c381666..d8c35490eaee 100644 --- a/test/godeps.list +++ b/test/godeps.list @@ -1,13 +1,13 @@ +github.com/canonical/lxd/client +github.com/canonical/lxd/shared +github.com/canonical/lxd/shared/api +github.com/canonical/lxd/shared/cancel +github.com/canonical/lxd/shared/ioprogress +github.com/canonical/lxd/shared/logger +github.com/canonical/lxd/shared/simplestreams +github.com/canonical/lxd/shared/units github.com/gorilla/websocket github.com/juju/persistent-cookiejar -github.com/lxc/lxd/client -github.com/lxc/lxd/shared -github.com/lxc/lxd/shared/api -github.com/lxc/lxd/shared/cancel -github.com/lxc/lxd/shared/ioprogress -github.com/lxc/lxd/shared/logger -github.com/lxc/lxd/shared/simplestreams -github.com/lxc/lxd/shared/units github.com/pkg/errors gopkg.in/inconshreveable/log15.v2 gopkg.in/juju/environschema.v1/form diff --git a/test/includes/check.sh b/test/includes/check.sh index 7c41e2f7c421..ac3d0b33a7b5 100644 --- a/test/includes/check.sh +++ b/test/includes/check.sh @@ -1,7 +1,7 @@ # Miscellaneous test checks. check_dependencies() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local dep missing missing="" diff --git a/test/includes/clustering.sh b/test/includes/clustering.sh index 18522ee57f66..e2afdd230465 100644 --- a/test/includes/clustering.sh +++ b/test/includes/clustering.sh @@ -8,7 +8,6 @@ setup_clustering_bridge() { ip link add "${name}" up type bridge ip addr add 10.1.1.1/16 dev "${name}" - # shellcheck disable=SC2039 iptables -w -t nat -A POSTROUTING -s 10.1.0.0/16 -d 0.0.0.0/0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward } @@ -33,8 +32,7 @@ setup_clustering_netns() { echo "==> Setup clustering netns ${ns}" - ( - cat << EOF + cat << EOF | unshare -m -n /bin/sh set -e mkdir -p "${TEST_DIR}/ns/${ns}" touch "${TEST_DIR}/ns/${ns}/net" @@ -54,12 +52,10 @@ touch /run/netns/hostns mount --bind /proc/1/ns/net /run/netns/hostns mount -t tmpfs tmpfs /usr/local/bin -( -cat << EOE +cat << EOE > /usr/local/bin/in-hostnetns #!/bin/sh exec ip netns exec hostns /usr/bin/\\\$(basename \\\$0) "\\\$@" EOE -) > /usr/local/bin/in-hostnetns chmod +x /usr/local/bin/in-hostnetns # Setup ceph ln -s in-hostnetns /usr/local/bin/ceph @@ -68,7 +64,6 @@ ln -s in-hostnetns /usr/local/bin/rbd sleep 300& echo \$! > "${TEST_DIR}/ns/${ns}/PID" EOF - ) | unshare -m -n /bin/sh veth1="v${ns}1" veth2="v${ns}2" @@ -79,8 +74,7 @@ EOF nsbridge="br$$" ip link set dev "${veth1}" master "${nsbridge}" up - ( - cat <> "${LXD_DIR}/preseed.yaml" <> "${LXD_DIR}/preseed.yaml" <> "${LXD_DIR}/preseed.yaml" <> "${LXD_DIR}/preseed.yaml" < Binding to network" - # shellcheck disable=SC2034 - for i in $(seq 10); do + for _ in $(seq 10); do addr="127.0.0.1:$(local_tcp_port)" LXD_DIR="${lxddir}" lxc config set core.https_address "${addr}" || continue echo "${addr}" > "${lxddir}/lxd.addr" @@ -83,7 +82,7 @@ respawn_lxd() { # LXD_DIR is local here because since $(lxc) is actually a function, it # overwrites the environment and we would lose LXD_DIR's value otherwise. - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR lxddir=${1} @@ -108,13 +107,17 @@ respawn_lxd() { echo "==> Confirming lxd is responsive (PID is ${LXD_PID})" LXD_DIR="${lxddir}" lxd waitready --timeout=300 || (echo "Killing PID ${LXD_PID}" ; kill -9 "${LXD_PID}" ; false) fi + + if [ -n "${DEBUG:-}" ]; then + set -x + fi } kill_lxd() { # LXD_DIR is local here because since $(lxc) is actually a function, it # overwrites the environment and we would lose LXD_DIR's value otherwise. - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR daemon_dir daemon_pid check_leftovers lxd_backend daemon_dir=${1} @@ -150,8 +153,8 @@ kill_lxd() { done # Delete all networks - echo "==> Deleting all networks" - for network in $(timeout -k 2 2 lxc network list --force-local --format csv | grep -F ',YES,' | cut -d, -f1); do + echo "==> Deleting all managed networks" + for network in $(timeout -k 2 2 lxc network list --force-local --format csv | awk -F, '{if ($3 == "YES") {print $1}}'); do timeout -k 10 10 lxc network delete "${network}" --force-local || true done @@ -249,16 +252,16 @@ shutdown_lxd() { # LXD_DIR is local here because since $(lxc) is actually a function, it # overwrites the environment and we would lose LXD_DIR's value otherwise. - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local LXD_DIR daemon_dir=${1} # shellcheck disable=2034 LXD_DIR=${daemon_dir} daemon_pid=$(cat "${daemon_dir}/lxd.pid") - echo "==> Killing LXD at ${daemon_dir} (${daemon_pid})" + echo "==> Shutting down LXD at ${daemon_dir} (${daemon_pid})" - # Kill the daemon + # Shutting down the daemon lxd shutdown || kill -9 "${daemon_pid}" 2>/dev/null || true # Wait for any cleanup activity that might be happening right @@ -267,7 +270,7 @@ shutdown_lxd() { } wait_for() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local addr op addr=${1} @@ -284,7 +287,7 @@ wipe() { fi fi - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local pid # shellcheck disable=SC2009 ps aux | grep lxc-monitord | grep "${1}" | awk '{print $2}' | while read -r pid; do @@ -300,7 +303,7 @@ wipe() { # Kill and cleanup LXD instances and related resources cleanup_lxds() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local test_dir daemon_dir test_dir="$1" diff --git a/test/includes/net.sh b/test/includes/net.sh index 2eeb63194cbd..270daa5a5437 100644 --- a/test/includes/net.sh +++ b/test/includes/net.sh @@ -3,19 +3,17 @@ # Return an available random local port local_tcp_port() { if command -v python3 >/dev/null 2>&1; then - ( - cat << EOF + cat << EOF | python3 import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('127.0.0.1', 0)) print(s.getsockname()[1]) s.close() EOF - ) | python3 return fi - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local port pid while true; do @@ -33,3 +31,29 @@ EOF my_curl() { curl -k -s --cert "${LXD_CONF}/client.crt" --key "${LXD_CONF}/client.key" "$@" } + +# Wait for duplicate address detection to complete. +# Usage: Either "wait_for_dad " or "wait_for_dad ". +wait_for_dad() { + cmd="ip -6 a show dev $1" + if [ "$#" -eq 2 ]; then + cmd="lxc exec $1 -- ip -6 a show dev $2" + fi + + # Ensure the command succeeds (else the while loop will break for the wrong reason). + if ! eval "$cmd"; then + echo "Invalid arguments to wait_for_dad" + false + return + fi + + while true + do + ip -6 a show + if ! eval "$cmd" | grep "tentative" ; then + break + fi + + sleep 0.5 + done +} diff --git a/test/includes/setup.sh b/test/includes/setup.sh index 615e210a410b..e3430e5b58c9 100644 --- a/test/includes/setup.sh +++ b/test/includes/setup.sh @@ -1,8 +1,8 @@ # Test setup helper functions. ensure_has_localhost_remote() { - # shellcheck disable=SC2039 - local addr=${1} + # shellcheck disable=SC2039,3043 + local addr="${1}" if ! lxc remote list | grep -q "localhost"; then lxc remote add localhost "https://${addr}" --accept-certificate --password foo fi @@ -23,7 +23,7 @@ ensure_import_testimage() { exit 1 fi - project=$(lxc project list | grep '(current)' | cut -d' ' -f2) + project="$(lxc project list | awk '/(current)/ {print $2}')" deps/import-busybox --alias testimage --project "$project" fi fi diff --git a/test/includes/storage.sh b/test/includes/storage.sh index 9f18cc077adf..0cc0a5e31cc1 100644 --- a/test/includes/storage.sh +++ b/test/includes/storage.sh @@ -2,10 +2,10 @@ # Whether a storage backend is available storage_backend_available() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local backends backends="$(available_storage_backends)" - if [ "${backends#*$1}" != "$backends" ]; then + if [ "${backends#*"$1"}" != "$backends" ]; then true return elif [ "${1}" = "cephfs" ] && [ "${backends#*"ceph"}" != "$backends" ] && [ -n "${LXD_CEPH_CEPHFS:-}" ]; then @@ -29,7 +29,7 @@ storage_backend() { # Return a list of available storage backends available_storage_backends() { - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local backend backends storage_backends backends="dir" # always available @@ -49,7 +49,7 @@ available_storage_backends() { } import_storage_backends() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local backend for backend in $(available_storage_backends); do # shellcheck disable=SC1090 @@ -58,7 +58,7 @@ import_storage_backends() { } configure_loop_device() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local lv_loop_file pvloopdev # shellcheck disable=SC2153 @@ -75,17 +75,17 @@ configure_loop_device() { # The following code enables to return a value from a shell function by # calling the function as: fun VAR1 - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local __tmp1="${1}" - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local res1="${lv_loop_file}" if [ "${__tmp1}" ]; then eval "${__tmp1}='${res1}'" fi - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local __tmp2="${2}" - # shellcheck disable=2039 + # shellcheck disable=2039,3043 local res2="${pvloopdev}" if [ "${__tmp2}" ]; then eval "${__tmp2}='${res2}'" @@ -93,13 +93,17 @@ configure_loop_device() { } deconfigure_loop_device() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local lv_loop_file loopdev success lv_loop_file="${1}" loopdev="${2}" success=0 - # shellcheck disable=SC2034 - for i in $(seq 20); do + for _ in $(seq 20); do + if ! losetup "${loopdev}"; then + success=1 + break + fi + if losetup -d "${loopdev}"; then success=1 break @@ -118,7 +122,7 @@ deconfigure_loop_device() { } umount_loops() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local line test_dir test_dir="$1" diff --git a/test/main.sh b/test/main.sh index b9649105747d..294b48691cee 100755 --- a/test/main.sh +++ b/test/main.sh @@ -7,10 +7,6 @@ export LC_ALL="C" # Force UTC for consistency export TZ="UTC" -if [ -n "${LXD_VERBOSE:-}" ] || [ -n "${LXD_DEBUG:-}" ]; then - set -x -fi - export DEBUG="" if [ -n "${LXD_VERBOSE:-}" ]; then DEBUG="--verbose" @@ -20,6 +16,10 @@ if [ -n "${LXD_DEBUG:-}" ]; then DEBUG="--debug" fi +if [ -n "${DEBUG:-}" ]; then + set -x +fi + if [ -z "${LXD_BACKEND:-}" ]; then LXD_BACKEND="dir" fi @@ -29,7 +29,7 @@ LXD_NETNS="" import_subdir_files() { test "$1" - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,3043 local file for file in "$1"/*.sh; do # shellcheck disable=SC1090 @@ -40,7 +40,7 @@ import_subdir_files() { import_subdir_files includes echo "==> Checking for dependencies" -check_dependencies lxd lxc curl dnsmasq jq git xgettext sqlite3 msgmerge msgfmt shuf setfacl uuidgen socat dig +check_dependencies lxd lxc curl dnsmasq jq git xgettext sqlite3 msgmerge msgfmt shuf setfacl socat dig if [ "${USER:-'root'}" != "root" ]; then echo "The testsuite must be run as root." >&2 @@ -80,16 +80,29 @@ cleanup() { # shellcheck disable=SC2086 printf "To poke around, use:\\n LXD_DIR=%s LXD_CONF=%s sudo -E %s/bin/lxc COMMAND\\n" "${LXD_DIR}" "${LXD_CONF}" ${GOPATH:-} echo "Tests Completed (${TEST_RESULT}): hit enter to continue" + read -r _ + fi - # shellcheck disable=SC2034 - read -r nothing + echo "" + echo "df -h output:" + df -h + + if [ "${TEST_RESULT}" != "success" ]; then + # dmesg may contain oops, IO errors, crashes, etc + echo "::group::dmesg logs" + journalctl --quiet --no-hostname --no-pager --boot=0 --lines=100 --dmesg + echo "::endgroup::" fi - echo "==> Cleaning up" + if [ -n "${GITHUB_ACTIONS:-}" ]; then + echo "==> Skipping cleanup (GitHub Action runner detected)" + else + echo "==> Cleaning up" - umount -l "${TEST_DIR}/dev" - kill_external_auth_daemon "$TEST_DIR" - cleanup_lxds "$TEST_DIR" + umount -l "${TEST_DIR}/dev" + kill_external_auth_daemon "$TEST_DIR" + cleanup_lxds "$TEST_DIR" + fi echo "" echo "" @@ -101,6 +114,7 @@ cleanup() { # Must be set before cleanup() TEST_CURRENT=setup +TEST_CURRENT_DESCRIPTION=setup # shellcheck disable=SC2034 TEST_RESULT=failure @@ -114,7 +128,7 @@ TEST_DIR=$(mktemp -d -p "$(pwd)" tmp.XXX) chmod +x "${TEST_DIR}" if [ -n "${LXD_TMPFS:-}" ]; then - mount -t tmpfs tmpfs "${TEST_DIR}" -o mode=0751 + mount -t tmpfs tmpfs "${TEST_DIR}" -o mode=0751 -o size=6G fi mkdir -p "${TEST_DIR}/dev" @@ -133,13 +147,55 @@ export LXD_ADDR start_external_auth_daemon "${LXD_DIR}" +LXD_SKIP_TESTS="${LXD_SKIP_TESTS:-}" +export LXD_SKIP_TESTS + +LXD_REQUIRED_TESTS="${LXD_REQUIRED_TESTS:-}" +export LXD_REQUIRED_TESTS + run_test() { TEST_CURRENT=${1} TEST_CURRENT_DESCRIPTION=${2:-${1}} + TEST_UNMET_REQUIREMENT="" echo "==> TEST BEGIN: ${TEST_CURRENT_DESCRIPTION}" START_TIME=$(date +%s) - ${TEST_CURRENT} + + # shellcheck disable=SC2039,3043 + local skip=false + + # Skip test if requested. + if [ -n "${LXD_SKIP_TESTS:-}" ]; then + for testName in ${LXD_SKIP_TESTS}; do + if [ "test_${testName}" = "${TEST_CURRENT}" ]; then + echo "==> SKIP: ${TEST_CURRENT} as specified in LXD_SKIP_TESTS" + skip=true + break + fi + done + fi + + if [ "${skip}" = false ]; then + # Run test. + ${TEST_CURRENT} + + # Check whether test was skipped due to unmet requirements, and if so check if the test is required and fail. + if [ -n "${TEST_UNMET_REQUIREMENT}" ]; then + if [ -n "${LXD_REQUIRED_TESTS:-}" ]; then + for testName in ${LXD_REQUIRED_TESTS}; do + if [ "test_${testName}" = "${TEST_CURRENT}" ]; then + echo "==> REQUIRED: ${TEST_CURRENT} ${TEST_UNMET_REQUIREMENT}" + false + return + fi + done + else + # Skip test if its requirements are not met and is not specified in required tests. + echo "==> SKIP: ${TEST_CURRENT} ${TEST_UNMET_REQUIREMENT}" + fi + fi + fi + END_TIME=$(date +%s) echo "==> TEST DONE: ${TEST_CURRENT_DESCRIPTION} ($((END_TIME-START_TIME))s)" diff --git a/test/perf.sh b/test/perf.sh index 6cf3841261b7..cd98fb5670a5 100755 --- a/test/perf.sh +++ b/test/perf.sh @@ -12,7 +12,7 @@ LXD_NETNS="" import_subdir_files() { test "$1" - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 local file for file in "$1"/*.sh; do # shellcheck disable=SC1090 @@ -27,7 +27,7 @@ log_message() { } run_benchmark() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 local label description label="$1" description="$2" diff --git a/test/suites/basic.sh b/test/suites/basic.sh index 10ab15b4fb87..9eb2481063f6 100644 --- a/test/suites/basic.sh +++ b/test/suites/basic.sh @@ -1,5 +1,5 @@ test_basic_usage() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/clustering.sh b/test/suites/clustering.sh index c119d945ef85..e23020e2999a 100644 --- a/test/suites/clustering.sh +++ b/test/suites/clustering.sh @@ -1,5 +1,5 @@ test_clustering_enable() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR LXD_INIT_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) @@ -179,7 +179,7 @@ test_clustering_enable() { } test_clustering_membership() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -339,7 +339,7 @@ test_clustering_membership() { } test_clustering_containers() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -512,7 +512,7 @@ test_clustering_containers() { } test_clustering_storage() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -855,7 +855,7 @@ test_clustering_storage() { # two-stage process required multi-node clusters, or directly with the normal # procedure for non-clustered daemons. test_clustering_storage_single_node() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -930,7 +930,7 @@ test_clustering_storage_single_node() { } test_clustering_network() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1079,7 +1079,7 @@ test_clustering_network() { # Perform an upgrade of a 2-member cluster, then a join a third member and # perform one more upgrade test_clustering_upgrade() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR LXD_NETNS setup_clustering_bridge @@ -1175,7 +1175,7 @@ test_clustering_upgrade() { # Perform an upgrade of an 8-member cluster. test_clustering_upgrade_large() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR LXD_NETNS N setup_clustering_bridge @@ -1231,7 +1231,7 @@ test_clustering_upgrade_large() { } test_clustering_publish() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1283,7 +1283,7 @@ test_clustering_publish() { } test_clustering_profiles() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1357,7 +1357,7 @@ EOF } test_clustering_update_cert() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1436,7 +1436,7 @@ test_clustering_update_cert() { } test_clustering_join_api() { - # shellcheck disable=2039,2034 + # shellcheck disable=SC2039,SC3043 local LXD_DIR LXD_NETNS setup_clustering_bridge @@ -1476,7 +1476,7 @@ test_clustering_join_api() { } test_clustering_shutdown_nodes() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1548,7 +1548,7 @@ test_clustering_shutdown_nodes() { } test_clustering_projects() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1613,7 +1613,7 @@ test_clustering_projects() { } test_clustering_address() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1691,7 +1691,7 @@ test_clustering_address() { } test_clustering_image_replication() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -1854,7 +1854,7 @@ test_clustering_image_replication() { } test_clustering_dns() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR # Because we do not want tests to only run on Ubuntu (due to cluster's fan network dependency) @@ -1940,7 +1940,7 @@ test_clustering_dns() { } test_clustering_recover() { - # shellcheck disable=2039,2034 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2022,7 +2022,7 @@ test_clustering_recover() { # When a voter cluster member is shutdown, its role gets transferred to a spare # node. test_clustering_handover() { - # shellcheck disable=2039,2034 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2140,7 +2140,7 @@ test_clustering_handover() { # If a voter node crashes and is detected as offline, its role is migrated to a # stand-by. test_clustering_rebalance() { - # shellcheck disable=2039,2034 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2228,7 +2228,7 @@ test_clustering_rebalance() { # Recover a cluster where a raft node was removed from the nodes table but not # from the raft configuration. test_clustering_remove_raft_node() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2349,7 +2349,7 @@ test_clustering_remove_raft_node() { } test_clustering_failure_domains() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2405,17 +2405,17 @@ test_clustering_failure_domains() { # Set failure domains - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 printf "roles: [\"database\"]\nfailure_domain: \"az1\"" | LXD_DIR="${LXD_THREE_DIR}" lxc cluster edit node1 - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 printf "roles: [\"database\"]\nfailure_domain: \"az2\"" | LXD_DIR="${LXD_THREE_DIR}" lxc cluster edit node2 - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 printf "roles: [\"database\"]\nfailure_domain: \"az3\"" | LXD_DIR="${LXD_THREE_DIR}" lxc cluster edit node3 - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 printf "roles: []\nfailure_domain: \"az1\"" | LXD_DIR="${LXD_THREE_DIR}" lxc cluster edit node4 - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 printf "roles: []\nfailure_domain: \"az2\"" | LXD_DIR="${LXD_THREE_DIR}" lxc cluster edit node5 - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 printf "roles: []\nfailure_domain: \"az3\"" | LXD_DIR="${LXD_THREE_DIR}" lxc cluster edit node6 LXD_DIR="${LXD_ONE_DIR}" lxc cluster show node2 | grep -q "failure_domain: az2" @@ -2452,7 +2452,7 @@ test_clustering_failure_domains() { } test_clustering_image_refresh() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2658,7 +2658,7 @@ test_clustering_image_refresh() { } test_clustering_edit_configuration() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge @@ -2807,7 +2807,7 @@ test_clustering_edit_configuration() { } test_clustering_remove_members() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR setup_clustering_bridge diff --git a/test/suites/config.sh b/test/suites/config.sh index b18a808561c4..ad8bfcc39b37 100644 --- a/test/suites/config.sh +++ b/test/suites/config.sh @@ -274,7 +274,7 @@ test_config_edit() { } test_config_edit_container_snapshot_pool_config() { - # shellcheck disable=2034,2039,2155 + # shellcheck disable=SC2039,SC3043,SC2155 local storage_pool="lxdtest-$(basename "${LXD_DIR}")" ensure_import_testimage diff --git a/test/suites/container_devices_disk.sh b/test/suites/container_devices_disk.sh index dc999db0e7ae..5560de925fe8 100644 --- a/test/suites/container_devices_disk.sh +++ b/test/suites/container_devices_disk.sh @@ -93,7 +93,7 @@ test_container_devices_raw_mount_options() { } test_container_devices_disk_ceph() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 local LXD_BACKEND LXD_BACKEND=$(storage_backend "$LXD_DIR") @@ -118,7 +118,7 @@ test_container_devices_disk_ceph() { } test_container_devices_disk_cephfs() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 local LXD_BACKEND LXD_BACKEND=$(storage_backend "$LXD_DIR") diff --git a/test/suites/container_devices_nic_bridged_filtering.sh b/test/suites/container_devices_nic_bridged_filtering.sh index edc448f6d011..ee1981e410e4 100644 --- a/test/suites/container_devices_nic_bridged_filtering.sh +++ b/test/suites/container_devices_nic_bridged_filtering.sh @@ -75,18 +75,21 @@ test_container_devices_nic_bridged_filtering() { else macHex=$(echo "${ctAMAC}" |sed "s/://g") macDec=$(printf "%d" 0x"${macHex}") + macHex=$(printf "0x%x" "${macDec}") for table in "in" "fwd" do - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep -e "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then + rules=$(nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0") + + if ! echo "${rules}" | grep -e "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then echo "MAC filter not applied as part of mac_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep -e "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep -e "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then echo "MAC ARP filter not applied as part of mac_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != ${macDec} drop"; then + if ! echo "${rules}" | grep -P "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != (${macHex}|${macDec}) drop"; then echo "MAC NDP filter not applied as part of mac_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi @@ -315,31 +318,35 @@ test_container_devices_nic_bridged_filtering() { fi else macDec=$(printf "%d" 0x"${macHex}") + macHex=$(printf "0x%x" "${macDec}") + ipv6Hex="0x20010db8000000000000000000000002" ipv6Dec="42540766411282592856903984951653826562" + rules=$(nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0") + for table in "in" "fwd" do - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then echo "MAC filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then echo "MAC ARP filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != ${macDec} drop"; then + if ! echo "${rules}" | grep -P "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != (${macHex}|${macDec}) drop"; then echo "MAC NDP filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" icmpv6 type 136 @nh,384,128 != ${ipv6Dec} drop"; then + if ! echo "${rules}" | grep -P "iifname \"${ctAHost}\" icmpv6 type 136 @nh,384,128 != (${ipv6Hex}|${ipv6Dec}) drop"; then echo "IPv6 NDP filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" ip6 saddr != 2001:db8::2 drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" ip6 saddr != 2001:db8::2 drop"; then echo "IPv6 filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep -e "iifname \"${ctAHost}\" icmpv6 type 134 drop"; then + if ! echo "${rules}" | grep -e "iifname \"${ctAHost}\" icmpv6 type 134 drop"; then echo "IPv6 RA filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi @@ -495,29 +502,34 @@ test_container_devices_nic_bridged_filtering() { false fi else + macHex=$(echo "${ctAMAC}" |sed "s/://g") macDec=$(printf "%d" 0x"${macHex}") + macHex=$(printf "0x%x" "${macDec}") + ipv6Hex="0x20010db8000000000000000000000002" ipv6Dec="42540766411282592856903984951653826562" + rules=$(nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0") + for table in "in" "fwd" do - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then echo "MAC filter not applied as part of ipv4_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then echo "MAC ARP filter not applied as part of ipv4_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != ${macDec} drop"; then + if ! echo "${rules}" | grep -P "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != (${macHex}|${macDec}) drop"; then echo "MAC NDP filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" icmpv6 type 136 @nh,384,128 != ${ipv6Dec} drop"; then + if ! echo "${rules}" | grep -P "iifname \"${ctAHost}\" icmpv6 type 136 @nh,384,128 != (${ipv6Hex}|${ipv6Dec}) drop"; then echo "IPv6 NDP filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" ip6 saddr != 2001:db8::2 drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" ip6 saddr != 2001:db8::2 drop"; then echo "IPv6 filter not applied as part of ipv6_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi @@ -577,19 +589,22 @@ test_container_devices_nic_bridged_filtering() { else macHex=$(echo "${ctAMAC}" |sed "s/://g") macDec=$(printf "%d" 0x"${macHex}") + macHex=$(printf "0x%x" "${macDec}") + + rules=$(nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0") for table in "in" "fwd" do - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" ether saddr != ${ctAMAC} drop"; then echo "MAC filter not applied as part of mac_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then + if ! echo "${rules}" | grep "iifname \"${ctAHost}\" arp saddr ether != ${ctAMAC} drop"; then echo "MAC ARP filter not applied as part of mac_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi - if ! nft -nn list chain bridge lxd "${table}.${ctPrefix}A.eth0" | grep "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != ${macDec} drop"; then + if ! echo "${rules}" | grep -P "iifname \"${ctAHost}\" icmpv6 type 136 @nh,528,48 != (${macHex}|${macDec}) drop"; then echo "MAC NDP filter not applied as part of mac_filtering in nftables (${table}.${ctPrefix}A.eth0)" false fi diff --git a/test/suites/container_devices_nic_ipvlan.sh b/test/suites/container_devices_nic_ipvlan.sh index 5a3fceaa9661..0697e8717234 100644 --- a/test/suites/container_devices_nic_ipvlan.sh +++ b/test/suites/container_devices_nic_ipvlan.sh @@ -36,6 +36,8 @@ test_container_devices_nic_ipvlan() { fi lxc stop "${ctName}" --force + ip -4 route flush dev lo + ip -6 route flush dev lo # Check that MTU is inherited from parent device when not specified on device. ip link set "${ctName}" mtu 1405 @@ -66,6 +68,9 @@ test_container_devices_nic_ipvlan() { # Check IPVLAN ontop of VLAN parent. lxc stop -f "${ctName}" + ip -4 route flush dev lo + ip -6 route flush dev lo + lxc config device set "${ctName}" eth0 vlan 1234 lxc start "${ctName}" @@ -99,4 +104,6 @@ test_container_devices_nic_ipvlan() { lxc delete "${ctName}" -f lxc delete "${ctName}2" -f ip link delete "${ctName}" type dummy + ip -4 route flush dev lo + ip -6 route flush dev lo } diff --git a/test/suites/container_local_cross_pool_handling.sh b/test/suites/container_local_cross_pool_handling.sh index 3b140adc45aa..03719f3f5e93 100644 --- a/test/suites/container_local_cross_pool_handling.sh +++ b/test/suites/container_local_cross_pool_handling.sh @@ -1,7 +1,7 @@ test_container_local_cross_pool_handling() { ensure_import_testimage - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR lxd_backend # shellcheck disable=SC2034 lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/database.sh b/test/suites/database.sh index c7d1ea7082a3..a582b710a236 100644 --- a/test/suites/database.sh +++ b/test/suites/database.sh @@ -84,7 +84,7 @@ EOF } test_database_no_disk_space(){ - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR LXD_NOSPACE_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) diff --git a/test/suites/external_auth.sh b/test/suites/external_auth.sh index a4dc5b749e5a..ca41105a166c 100644 --- a/test/suites/external_auth.sh +++ b/test/suites/external_auth.sh @@ -1,5 +1,5 @@ test_macaroon_auth() { - # shellcheck disable=SC2039 + # shellcheck disable=SC2039,SC3043 local identity_endpoint # shellcheck disable=SC2086 identity_endpoint="$(cat ${TEST_DIR}/macaroon-identity.endpoint)" diff --git a/test/suites/filtering.sh b/test/suites/filtering.sh index 94bf5d9b258b..f4b59cd92b12 100644 --- a/test/suites/filtering.sh +++ b/test/suites/filtering.sh @@ -1,6 +1,6 @@ # Test API filtering. test_filtering() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_DIR LXD_FILTERING_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) diff --git a/test/suites/image.sh b/test/suites/image.sh index 0dbaa244fca7..7726d04529d7 100644 --- a/test/suites/image.sh +++ b/test/suites/image.sh @@ -1,5 +1,5 @@ test_image_expiry() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD2_DIR LXD2_ADDR LXD2_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) chmod +x "${LXD2_DIR}" @@ -50,8 +50,8 @@ test_image_expiry() { test_image_list_all_aliases() { ensure_import_testimage - # shellcheck disable=2039,2034,2155 - local sum=$(lxc image info testimage | grep ^Fingerprint | cut -d' ' -f2) + # shellcheck disable=SC2039,SC3043,SC2034,SC2155 + local sum="$(lxc image info testimage | grep ^Fingerprint | cut -d' ' -f2)" lxc image alias create zzz "$sum" lxc image list | grep -vq zzz # both aliases are listed if the "aliases" column is included in output @@ -63,16 +63,16 @@ test_image_list_all_aliases() { test_image_import_dir() { ensure_import_testimage lxc image export testimage - # shellcheck disable=2039,2034,2155 - local image=$(ls -1 -- *.tar.xz) + # shellcheck disable=SC2039,SC3043,SC2034,SC2155 + local image="$(ls -1 -- *.tar.xz)" mkdir -p unpacked tar -C unpacked -xf "$image" - # shellcheck disable=2039,2034,2155 - local fingerprint=$(lxc image import unpacked | awk '{print $NF;}') + # shellcheck disable=SC2039,SC3043,SC2034,SC2155 + local fingerprint="$(lxc image import unpacked | awk '{print $NF;}')" rm -rf "$image" unpacked lxc image export "$fingerprint" - # shellcheck disable=2039,2034,2155 + # shellcheck disable=SC2039,SC3043 local exported="${fingerprint}.tar.xz" tar tvf "$exported" | grep -Fq metadata.yaml diff --git a/test/suites/image_auto_update.sh b/test/suites/image_auto_update.sh index d552de52fabd..933f5d61a2ea 100644 --- a/test/suites/image_auto_update.sh +++ b/test/suites/image_auto_update.sh @@ -3,7 +3,7 @@ test_image_auto_update() { lxc image delete testimage fi - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD2_DIR LXD2_ADDR LXD2_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) chmod +x "${LXD2_DIR}" diff --git a/test/suites/image_prefer_cached.sh b/test/suites/image_prefer_cached.sh index 26f1a464541b..0790fa1c9e90 100644 --- a/test/suites/image_prefer_cached.sh +++ b/test/suites/image_prefer_cached.sh @@ -6,7 +6,7 @@ test_image_prefer_cached() { lxc image delete testimage fi - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD2_DIR LXD2_ADDR LXD2_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) chmod +x "${LXD2_DIR}" diff --git a/test/suites/incremental_copy.sh b/test/suites/incremental_copy.sh index 4f5b6d83ae40..4fbacd68c9b9 100644 --- a/test/suites/incremental_copy.sh +++ b/test/suites/incremental_copy.sh @@ -1,5 +1,5 @@ test_incremental_copy() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -16,7 +16,7 @@ test_incremental_copy() { return fi - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local source_pool source_pool="lxdtest-$(basename "${LXD_DIR}")-dir-pool" lxc storage create "${source_pool}" dir @@ -26,9 +26,9 @@ test_incremental_copy() { } do_copy() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local source_pool=$1 - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local target_pool=$2 # Make sure the containers don't exist diff --git a/test/suites/migration.sh b/test/suites/migration.sh index a203879a8f0b..cb77f58648f7 100644 --- a/test/suites/migration.sh +++ b/test/suites/migration.sh @@ -1,6 +1,6 @@ test_migration() { # setup a second LXD - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD2_DIR LXD2_ADDR lxd_backend # shellcheck disable=2153 lxd_backend=$(storage_backend "$LXD_DIR") @@ -26,7 +26,7 @@ test_migration() { if [ "${LXD_BACKEND}" = "lvm" ]; then # Test that non-thinpool lvm backends work fine with migration. - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local storage_pool1 storage_pool2 # shellcheck disable=2153 storage_pool1="lxdtest-$(basename "${LXD_DIR}")-non-thinpool-lvm-migration" @@ -52,11 +52,18 @@ test_migration() { } migration() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd2_dir lxd_backend lxd2_backend lxd2_dir="$1" lxd_backend=$(storage_backend "$LXD_DIR") lxd2_backend=$(storage_backend "$lxd2_dir") + + # XXX: optimized migration fails with: `ERROR: cannot find parent subvolume` + # due to missing https://github.com/canonical/lxd/commit/94180308e133e9637ec6e24a8b760207622dd412 + if [ "${lxd_backend}" = "btrfs" ] && [ "${lxd2_backend}" = "btrfs" ]; then + return + fi + ensure_import_testimage lxc_remote init testimage nonlive diff --git a/test/suites/projects.sh b/test/suites/projects.sh index 9911c3a59cab..f462f85c841f 100644 --- a/test/suites/projects.sh +++ b/test/suites/projects.sh @@ -701,7 +701,7 @@ test_projects_limits() { # too small for resize2fs. if [ "${LXD_BACKEND}" = "dir" ] || [ "${LXD_BACKEND}" = "zfs" ]; then # Add a remote LXD to be used as image server. - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_REMOTE_DIR LXD_REMOTE_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) chmod +x "${LXD_REMOTE_DIR}" diff --git a/test/suites/remote.sh b/test/suites/remote.sh index ee8f2ae4641b..5a22b19e1962 100644 --- a/test/suites/remote.sh +++ b/test/suites/remote.sh @@ -12,7 +12,7 @@ test_remote_url() { # shellcheck disable=2153 urls="${LXD_DIR}/unix.socket unix:${LXD_DIR}/unix.socket unix://${LXD_DIR}/unix.socket" if [ -z "${LXD_OFFLINE:-}" ]; then - urls="images.linuxcontainers.org https://images.linuxcontainers.org ${urls}" + urls="images.lxd.canonical.com https://images.lxd.canonical.com ${urls}" fi # an invalid protocol returns an error @@ -65,15 +65,15 @@ test_remote_admin() { # Check that we can add domains with valid certs without confirmation: if [ -z "${LXD_OFFLINE:-}" ]; then - lxc_remote remote add images1 images.linuxcontainers.org - lxc_remote remote add images2 images.linuxcontainers.org:443 + lxc_remote remote add images1 images.lxd.canonical.com + lxc_remote remote add images2 images.lxd.canonical.com:443 lxc_remote remote remove images1 lxc_remote remote remove images2 fi } test_remote_usage() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD2_DIR LXD2_ADDR LXD2_DIR=$(mktemp -d -p "${TEST_DIR}" XXX) chmod +x "${LXD2_DIR}" diff --git a/test/suites/security.sh b/test/suites/security.sh index b93d52aba9b6..416ddfc21343 100644 --- a/test/suites/security.sh +++ b/test/suites/security.sh @@ -87,7 +87,7 @@ test_security() { lxc delete test-unpriv --force - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR LXD_STORAGE_DIR=$(mktemp -d -p "${TEST_DIR}" XXXXXXXXX) @@ -163,29 +163,44 @@ test_security_protection() { lxc profile unset default security.protection.delete # Test shifting protection - if ! grep -q shiftfs /proc/filesystems; then - lxc init testimage c1 - lxc start c1 - lxc stop c1 --force - - lxc profile set default security.protection.shift true - lxc start c1 - lxc stop c1 --force - - lxc publish c1 --alias=protected - lxc image delete protected - - lxc snapshot c1 - lxc publish c1/snap0 --alias=protected - lxc image delete protected - - lxc config set c1 security.privileged true - ! lxc start c1 || false - lxc config set c1 security.protection.shift false - lxc start c1 - lxc stop c1 --force - - lxc delete c1 - lxc profile unset default security.protection.shift - fi + + # Respawn LXD with kernel ID shifting support disabled to force manual shifting. + shutdown_lxd "${LXD_DIR}" + lxdShiftfsDisable=${LXD_SHIFTFS_DISABLE:-} + lxdIdmappedMountsDisable=${LXD_IDMAPPED_MOUNTS_DISABLE:-} + + export LXD_SHIFTFS_DISABLE=1 + export LXD_IDMAPPED_MOUNTS_DISABLE=1 + respawn_lxd "${LXD_DIR}" true + + lxc init testimage c1 + lxc start c1 + lxc stop c1 --force + + lxc profile set default security.protection.shift true + lxc start c1 + lxc stop c1 --force + + lxc publish c1 --alias=protected + lxc image delete protected + + lxc snapshot c1 + lxc publish c1/snap0 --alias=protected + lxc image delete protected + + lxc config set c1 security.privileged true + ! lxc start c1 || false + lxc config set c1 security.protection.shift false + lxc start c1 + lxc stop c1 --force + + lxc delete c1 + lxc profile unset default security.protection.shift + + # Respawn LXD to restore default kernel shifting support. + shutdown_lxd "${LXD_DIR}" + export LXD_SHIFTFS_DISABLE="${lxdShiftfsDisable}" + export LXD_IDMAPPED_MOUNTS_DISABLE="${lxdIdmappedMountsDisable}" + + respawn_lxd "${LXD_DIR}" true } diff --git a/test/suites/serverconfig.sh b/test/suites/serverconfig.sh index 1074aab270fa..f5511a29dc61 100644 --- a/test/suites/serverconfig.sh +++ b/test/suites/serverconfig.sh @@ -38,7 +38,7 @@ test_server_config_access() { } test_server_config_storage() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/snapshots.sh b/test/suites/snapshots.sh index 19611306cbfa..5866ced1b6ff 100644 --- a/test/suites/snapshots.sh +++ b/test/suites/snapshots.sh @@ -15,7 +15,7 @@ test_snapshots() { } snapshots() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -105,7 +105,7 @@ test_snap_restore() { } snap_restore() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -242,7 +242,7 @@ restore_and_compare_fs() { } test_snap_expiry() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -268,7 +268,7 @@ test_snap_expiry() { } test_snap_schedule() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/static_analysis.sh b/test/suites/static_analysis.sh index a0757e0be554..377a272d11ed 100644 --- a/test/suites/static_analysis.sh +++ b/test/suites/static_analysis.sh @@ -21,36 +21,36 @@ test_static_analysis() { # Shell static analysis if command -v shellcheck >/dev/null 2>&1; then - shellcheck --shell sh test/*.sh test/includes/*.sh test/suites/*.sh test/backends/*.sh + shellcheck -e SC2086 -e SC2269 -e SC2295 --shell sh test/*.sh test/includes/*.sh test/suites/*.sh test/backends/*.sh else echo "shellcheck not found, shell static analysis disabled" fi ## Functions starting by empty line - OUT=$(grep -r "^$" -B1 . 2>/dev/null | grep "func " | grep -v "}$" | grep -v "./lxd/sqlite/" || true) + OUT="$(grep -r "^$" -B1 . 2>/dev/null | grep -v '^\./doc/' | grep "func " | grep -v "}$" | grep -v "./lxd/sqlite/" || true)" if [ -n "${OUT}" ]; then echo "ERROR: Functions must not start with an empty line: ${OUT}" false fi ## Mixed tabs/spaces in scripts - OUT=$(grep -Pr '\t' . 2>/dev/null | grep '\.sh:' || true) + OUT="$(grep -Pr '\t' . 2>/dev/null | grep -v '^\./doc/' | grep '\.sh:' || true)" if [ -n "${OUT}" ]; then echo "ERROR: mixed tabs and spaces in script: ${OUT}" false fi ## Trailing space in scripts - OUT=$(grep -r " $" . 2>/dev/null | grep '\.sh:' || true) + OUT="$(grep -r " $" . 2>/dev/null | grep -v '^\./doc/' | grep '\.sh:' || true)" if [ -n "${OUT}" ]; then echo "ERROR: trailing space in script: ${OUT}" false fi ## go vet, if it exists - if go help vet >/dev/null 2>&1; then - go vet ./... - fi + #if go help vet >/dev/null 2>&1; then + # go vet ./... + #fi ## vet if command -v vet >/dev/null 2>&1; then diff --git a/test/suites/storage.sh b/test/suites/storage.sh index 0a47a0cd86d3..fa916db31a9e 100644 --- a/test/suites/storage.sh +++ b/test/suites/storage.sh @@ -1,7 +1,7 @@ test_storage() { ensure_import_testimage - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -10,7 +10,7 @@ test_storage() { spawn_lxd "${LXD_STORAGE_DIR}" false # edit storage and pool description - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local storage_pool storage_volume storage_pool="lxdtest-$(basename "${LXD_DIR}")-pool" storage_volume="${storage_pool}-vol" @@ -36,7 +36,7 @@ test_storage() { # Test btrfs resize if [ "$lxd_backend" = "lvm" ] || [ "$lxd_backend" = "ceph" ]; then - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local btrfs_storage_pool btrfs_storage_volume btrfs_storage_pool="lxdtest-$(basename "${LXD_DIR}")-pool-btrfs" btrfs_storage_volume="${storage_pool}-vol" @@ -147,8 +147,8 @@ test_storage() { lxc storage create "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" btrfs rsync.bwlimit=1024 lxc storage delete "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" - lxc storage create "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" btrfs btrfs.mount_options="rw,strictatime,nospace_cache,user_subvol_rm_allowed" - lxc storage set "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" btrfs.mount_options "rw,relatime,space_cache,user_subvol_rm_allowed" + lxc storage create "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" btrfs btrfs.mount_options="rw,strictatime,user_subvol_rm_allowed" + lxc storage set "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" btrfs.mount_options "rw,relatime,user_subvol_rm_allowed" lxc storage delete "lxdtest-$(basename "${LXD_DIR}")-valid-btrfs-pool-config" fi @@ -755,24 +755,13 @@ test_storage() { ) # Test applying quota (expected size ranges are in KB and have an allowable range to account for allocation variations). - QUOTA1="10GB" - rootMinKB1="9456000" - rootMaxKB1="9999999" - - QUOTA2="11GB" - rootMinKB2="10402000" - rootMaxKB2="10744999" - - if [ "$lxd_backend" = "lvm" ]; then - QUOTA1="20MB" - rootMinKB1="14000" - rootMaxKB1="20000" - - # Increase quota enough to require a new 4MB LVM extent. - QUOTA2="25MB" - rootMinKB2="19000" - rootMaxKB2="23000" - fi + QUOTA1="20MiB" + rootMinKB1="13800" + rootMaxKB1="23000" + + QUOTA2="25MiB" + rootMinKB2="18900" + rootMaxKB2="28000" if [ "$lxd_backend" != "dir" ]; then lxc launch testimage quota1 diff --git a/test/suites/storage_driver_btrfs.sh b/test/suites/storage_driver_btrfs.sh index 31fa6e63e994..13cc72a993a7 100644 --- a/test/suites/storage_driver_btrfs.sh +++ b/test/suites/storage_driver_btrfs.sh @@ -1,5 +1,5 @@ test_storage_driver_btrfs() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -56,32 +56,33 @@ test_storage_driver_btrfs() { btrfs property set "${LXD_DIR}/storage-pools/lxdtest-$(basename "${LXD_DIR}")-pool1/containers/c1pool1/rootfs/a/b" ro true lxc snapshot c1pool1 snap2 - # Copy container to other BTRFS storage pool (will use migration subsystem). - lxc copy c1pool1 c1pool2 -s "lxdtest-$(basename "${LXD_DIR}")-pool2" - lxc start c1pool2 - lxc exec c1pool2 -- stat /a/a2.txt - lxc exec c1pool2 -- stat /a/b/b2.txt - lxc exec c1pool2 -- stat /a/b/c/c2.txt - - # Test readonly property has been propagated. - lxc exec c1pool2 -- touch /a/w.txt - ! lxc exec c1pool2 -- touch /a/b/w.txt || false - lxc exec c1pool2 -- touch /a/b/c/w.txt - - # Restore copied snapshot and check it is correct. - lxc restore c1pool2 snap1 - lxc exec c1pool2 -- stat /a/a1.txt - lxc exec c1pool2 -- stat /a/b/b1.txt - lxc exec c1pool2 -- stat /a/b/c/c1.txt - ! lxc exec c1pool2 -- stat /a/a2.txt || false - ! lxc exec c1pool2 -- stat /a/b/b2.txt || false - ! lxc exec c1pool2 -- stat /a/b/c/c2.txt || false - - # Test readonly property has been propagated in snapshot. - lxc exec c1pool2 -- touch /a/w.txt - ! lxc exec c1pool2 -- touch /a/b/w.txt || false - lxc exec c1pool2 -- touch /a/b/c/w.txt - lxc delete -f c1pool2 + # XXX: `ERROR: cannot find parent subvolume` + ## Copy container to other BTRFS storage pool (will use migration subsystem). + #lxc copy c1pool1 c1pool2 -s "lxdtest-$(basename "${LXD_DIR}")-pool2" + #lxc start c1pool2 + #lxc exec c1pool2 -- stat /a/a2.txt + #lxc exec c1pool2 -- stat /a/b/b2.txt + #lxc exec c1pool2 -- stat /a/b/c/c2.txt + + ## Test readonly property has been propagated. + #lxc exec c1pool2 -- touch /a/w.txt + #! lxc exec c1pool2 -- touch /a/b/w.txt || false + #lxc exec c1pool2 -- touch /a/b/c/w.txt + + ## Restore copied snapshot and check it is correct. + #lxc restore c1pool2 snap1 + #lxc exec c1pool2 -- stat /a/a1.txt + #lxc exec c1pool2 -- stat /a/b/b1.txt + #lxc exec c1pool2 -- stat /a/b/c/c1.txt + #! lxc exec c1pool2 -- stat /a/a2.txt || false + #! lxc exec c1pool2 -- stat /a/b/b2.txt || false + #! lxc exec c1pool2 -- stat /a/b/c/c2.txt || false + + ## Test readonly property has been propagated in snapshot. + #lxc exec c1pool2 -- touch /a/w.txt + #! lxc exec c1pool2 -- touch /a/b/w.txt || false + #lxc exec c1pool2 -- touch /a/b/c/w.txt + #lxc delete -f c1pool2 # Copy snapshot to as a new instance on different pool. lxc copy c1pool1/snap1 c1pool2 -s "lxdtest-$(basename "${LXD_DIR}")-pool2" @@ -138,19 +139,20 @@ test_storage_driver_btrfs() { lxc exec c2pool1 -- touch /a/b/c/w.txt lxc delete -f c2pool1 + # XXX: --optimized-storage doesn't work on GHA runners # Backup c1pool1 and test subvolumes can be restored. - lxc export c1pool1 "${LXD_DIR}/c1pool1.tar.gz" --optimized-storage - lxc delete -f c1pool1 - lxc import "${LXD_DIR}/c1pool1.tar.gz" - lxc start c1pool1 - lxc exec c1pool1 -- stat /a/a1.txt - lxc exec c1pool1 -- stat /a/b/b1.txt - lxc exec c1pool1 -- stat /a/b/c/c1.txt - - # Test readonly property has been propagated. - lxc exec c1pool1 -- touch /a/w.txt - ! lxc exec c1pool1 -- touch /a/b/w.txt || false - lxc exec c1pool1 -- touch /a/b/c/w.txt + #lxc export c1pool1 "${LXD_DIR}/c1pool1.tar.gz" --optimized-storage + #lxc delete -f c1pool1 + #lxc import "${LXD_DIR}/c1pool1.tar.gz" + #lxc start c1pool1 + #lxc exec c1pool1 -- stat /a/a1.txt + #lxc exec c1pool1 -- stat /a/b/b1.txt + #lxc exec c1pool1 -- stat /a/b/c/c1.txt + + ## Test readonly property has been propagated. + #lxc exec c1pool1 -- touch /a/w.txt + #! lxc exec c1pool1 -- touch /a/b/w.txt || false + #lxc exec c1pool1 -- touch /a/b/c/w.txt lxc delete -f c1pool1 lxc profile device remove default root diff --git a/test/suites/storage_driver_ceph.sh b/test/suites/storage_driver_ceph.sh index bffa49ffb845..d0f687747769 100644 --- a/test/suites/storage_driver_ceph.sh +++ b/test/suites/storage_driver_ceph.sh @@ -1,5 +1,5 @@ test_storage_driver_ceph() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/storage_driver_cephfs.sh b/test/suites/storage_driver_cephfs.sh index 7c85ca754425..29a0b6545644 100644 --- a/test/suites/storage_driver_cephfs.sh +++ b/test/suites/storage_driver_cephfs.sh @@ -1,5 +1,5 @@ test_storage_driver_cephfs() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/storage_local_volume_handling.sh b/test/suites/storage_local_volume_handling.sh index 00ca480608fc..7cab638f7b25 100644 --- a/test/suites/storage_local_volume_handling.sh +++ b/test/suites/storage_local_volume_handling.sh @@ -1,7 +1,7 @@ test_storage_local_volume_handling() { ensure_import_testimage - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR lxd_backend # shellcheck disable=SC2034 lxd_backend=$(storage_backend "$LXD_DIR") diff --git a/test/suites/storage_profiles.sh b/test/suites/storage_profiles.sh index 45540c402e8f..7f83eeeac102 100644 --- a/test/suites/storage_profiles.sh +++ b/test/suites/storage_profiles.sh @@ -1,5 +1,5 @@ test_storage_profiles() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 LXD_STORAGE_DIR=$(mktemp -d -p "${TEST_DIR}" XXXXXXXXX) chmod +x "${LXD_STORAGE_DIR}" diff --git a/test/suites/storage_snapshots.sh b/test/suites/storage_snapshots.sh index f61d8e9ec0ff..03afbe977e42 100644 --- a/test/suites/storage_snapshots.sh +++ b/test/suites/storage_snapshots.sh @@ -1,7 +1,7 @@ test_storage_volume_snapshots() { ensure_import_testimage - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local LXD_STORAGE_DIR lxd_backend lxd_backend=$(storage_backend "$LXD_DIR") @@ -9,7 +9,7 @@ test_storage_volume_snapshots() { chmod +x "${LXD_STORAGE_DIR}" spawn_lxd "${LXD_STORAGE_DIR}" false - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local storage_pool storage_volume storage_pool="lxdtest-$(basename "${LXD_STORAGE_DIR}")-pool" storage_volume="${storage_pool}-vol" diff --git a/test/suites/template.sh b/test/suites/template.sh index 7895e565f880..323b7cfcb11e 100644 --- a/test/suites/template.sh +++ b/test/suites/template.sh @@ -1,5 +1,5 @@ test_template() { - # shellcheck disable=2039 + # shellcheck disable=SC2039,SC3043 local lxd_backend lxd_backend=$(storage_backend "$LXD_DIR")