Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Prepare 4.0.10 (stable-4.0) #13643

Merged
merged 12 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 17 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -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'
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ lxd-p2c:
.PHONY: deps
deps:
@if [ ! -e "$(RAFT_PATH)" ]; then \
git clone --depth=1 "https://github.com/canonical/raft" "$(RAFT_PATH)"; \
git clone "https://github.com/canonical/raft" "$(RAFT_PATH)"; \
elif [ -e "$(RAFT_PATH)/.git" ]; then \
cd "$(RAFT_PATH)"; git pull; \
fi
fi; \
git reset --hard abf9c42a9bb63c24920ab9f0bfbc4b7a47e7e5f4

cd "$(RAFT_PATH)" && \
autoreconf -i && \
Expand All @@ -65,10 +66,11 @@ deps:

# dqlite
@if [ ! -e "$(DQLITE_PATH)" ]; then \
git clone --depth=1 "https://github.com/canonical/dqlite" "$(DQLITE_PATH)"; \
git clone "https://github.com/canonical/dqlite" "$(DQLITE_PATH)"; \
elif [ -e "$(DQLITE_PATH)/.git" ]; then \
cd "$(DQLITE_PATH)"; git pull; \
fi
fi; \
git reset --hard 50ee9af350b2fb4e79f9eb58db22c8a0927138de

cd "$(DQLITE_PATH)" && \
autoreconf -i && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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.


Expand Down
6 changes: 3 additions & 3 deletions client/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,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
// }
Expand Down
2 changes: 1 addition & 1 deletion client/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions client/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/gorilla/websocket"
"github.com/pkg/sftp"

"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.
Expand Down
6 changes: 3 additions & 3 deletions client/lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_certificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/url"

"github.com/lxc/lxd/shared/api"
"github.com/canonical/lxd/shared/api"
)

// Certificate handling functions
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions client/lxd_containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions client/lxd_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"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"
)

// Event handling functions
Expand Down
10 changes: 5 additions & 5 deletions client/lxd_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions client/lxd_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import (
"github.com/gorilla/websocket"
"github.com/pkg/sftp"

"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/tcp"
"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/tcp"
"github.com/canonical/lxd/shared/units"
)

// Instance handling functions.
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_network_acls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_network_forwards.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_network_peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_network_zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/url"

"github.com/lxc/lxd/shared/api"
"github.com/canonical/lxd/shared/api"
)

// Profile handling functions
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/url"

"github.com/lxc/lxd/shared/api"
"github.com/canonical/lxd/shared/api"
)

// Project handling functions
Expand Down
4 changes: 2 additions & 2 deletions client/lxd_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_storage_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/url"

"github.com/lxc/lxd/shared/api"
"github.com/canonical/lxd/shared/api"
)

// Storage pool handling functions
Expand Down
10 changes: 5 additions & 5 deletions client/lxd_storage_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/lxd_warnings.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/url"

"github.com/lxc/lxd/shared/api"
"github.com/canonical/lxd/shared/api"
)

// Warning handling functions
Expand Down
2 changes: 1 addition & 1 deletion client/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion client/simplestreams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions client/simplestreams_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"os/exec"
"strings"

"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
Expand Down
2 changes: 1 addition & 1 deletion client/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion doc/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/external_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:maxdepth: 1

Project repository <https://github.com/canonical/lxd>
Image server <https://images.linuxcontainers.org>
Image server <https://images.lxd.canonical.com>
```
2 changes: 1 addition & 1 deletion doc/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@ navigation:
external: true

- title: Image server
location: https://images.linuxcontainers.org
location: https://images.lxd.canonical.com
external: true
Loading
Loading