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

2.9 into develop #14405

Merged
merged 27 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b0a174e
Install shfmt during static analysis to enable lint
jack-w-shaw Jul 28, 2022
87180e1
Merge branch '2.9' into enable_shfmt_gh_action
juanmanuel-tirado Jul 29, 2022
0a83092
Update static-analysis.yml
juanmanuel-tirado Jul 29, 2022
31c7f66
Merge pull request #14391 from jack-w-shaw/enable_shfmt_gh_action
jujubot Jul 29, 2022
00aa588
Fix typo
hpidcock Jul 29, 2022
8670b1f
Merge pull request #14397 from hpidcock/fix-typo
hpidcock Jul 29, 2022
0f8f941
Allow upgrading to 3.0
hpidcock Jul 29, 2022
07a8418
Fix upgrade tests for 3.0
hpidcock Aug 1, 2022
2ac1f6d
Merge pull request #14398 from hpidcock/allow-upgrade-3.0
jujubot Aug 1, 2022
68c402e
Removed local ubuntu charm from tests
tlm Jul 19, 2022
7e4af48
Removing local Ubuntu charm from upgrade tests.
tlm Jul 19, 2022
098cf99
Updating appdata-sink/source charm for charmhub.
tlm Jul 19, 2022
d56f88e
Adding refresher charm for use in bash tests.
tlm Jul 21, 2022
a6b01e2
Created revision 2 of refhreser charm.
tlm Jul 21, 2022
52423ca
Changed smoke test deploy to use refresher charm
tlm Jul 21, 2022
629e996
Upgrade smoke tests to revision 2 of refresher.
tlm Jul 21, 2022
bd643f4
Moved relation departing charm to common charm loc.
tlm Jul 21, 2022
16a0fe7
Added documentation for tests in smoke suite.
tlm Jul 22, 2022
16b35ed
Add README.md to charms test dir.
tlm Jul 22, 2022
776fa25
Moved lxd-profile charm to charms dir.
tlm Jul 22, 2022
576ef76
Moving lxd profile usage over to Charmhub
tlm Jul 22, 2022
e196ea8
Adds charm lxd-profile-without-device
tlm Jul 27, 2022
637f7a6
Updated usages of lxd-profile-without-devices.
tlm Jul 27, 2022
e7a26db
Consolidation of the lxd-profile-subordinate charm.
tlm Jul 27, 2022
2924073
Merge pull request #14375 from tlm/charm-cleaning
jujubot Aug 1, 2022
61ae1e2
Fixes date format for instance-poller comment from Achilleas.
manadart Aug 1, 2022
f40327f
Merge remote-tracking branch 'juju/2.9' into 2.9-into-develop
tlm Aug 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH

curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2

sudo snap install shfmt

- name: Download Dependencies
run: go mod download

Expand Down
6 changes: 3 additions & 3 deletions acceptancetests/repository/bundles-lxd-profile-upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
series: bionic
applications:
lxd-profile:
charm: cs:~juju-qa/bionic/lxd-profile-without-devices-2
charm: juju-qa-lxd-profile-without-devices
num_units: 4
to:
- "0"
- "1"
- "2"
- "3"
lxd-profile-subordinate:
charm: cs:~juju-qa/bionic/lxd-profile-subordinate-2
charm: juju-qa-lxd-profile-subordinate
ubuntu:
charm: cs:~jameinel/ubuntu-lite
num_units: 4
Expand All @@ -24,5 +24,5 @@ machines:
"2": {}
"3": {}
relations:
- - lxd-profile:juju-info
- - lxd-profile-without-devices:juju-info
- lxd-profile-subordinate:juju-info
2 changes: 1 addition & 1 deletion acceptancetests/repository/bundles-lxd-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ machines:
'3': {}
applications:
lxd-profile:
charm: cs:~juju-qa/bionic/lxd-profile-without-devices-5
charm: juju-qa-lxd-profile-without-devices
num_units: 8
to:
- lxd:0
Expand Down
7 changes: 7 additions & 0 deletions testcharms/charms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Charms Directory

## Introduction
This directory is responsible for holding all of the source code for the various
charms that Juju uses during acceptance tests. Charms in this directory are
likely to also be upload to Charmhub where they should almost always be used
from.
43 changes: 43 additions & 0 deletions testcharms/charms/appdata-sink/charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
architectures: ["amd64", "arm64"]
run-on:
- name: "ubuntu"
channel: "16.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "18.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "20.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "22.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
parts:
tiny-bash:
plugin: dump
source: .
prime:
- copyright
- hooks
- metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: appdata-sink
maintainer: Christian Muirhead <christian.muirhead@canonical.com>
maintainer: Juju Crew <juju-crew@canonical.com>
summary: Dummy charm that accepts application data
description: |
This dummy charm is used to verify that application-level relationship data is received correctly
Expand All @@ -9,5 +9,7 @@ provides:
categories:
- misc
series:
- jammy
- xenial
- bionic
- focal
- jammy
46 changes: 46 additions & 0 deletions testcharms/charms/appdata-source/charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
architectures: ["amd64", "arm64"]
run-on:
- name: "ubuntu"
channel: "16.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "18.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "20.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "22.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
parts:
tiny-bash:
plugin: dump
source: .
prime:
- actions
- actions.yaml
- copyright
- config.yaml
- hooks
- metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: appdata-source
maintainer: Christian Muirhead <christian.muirhead@canonical.com>
maintainer: Juju Crew <juju-crew@canonical.com>
summary: Dummy charm that provides application data
description: |
This dummy charm is used to verify that application-level relationship data is sent correctly
Expand All @@ -9,5 +9,7 @@ requires:
categories:
- misc
series:
- jammy
- xenial
- bionic
- focal
- jammy
45 changes: 45 additions & 0 deletions testcharms/charms/lxd-profile-subordinate/charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
architectures: ["amd64", "arm64"]
run-on:
- name: "ubuntu"
channel: "16.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "18.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "20.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "22.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
parts:
tiny-bash:
plugin: dump
source: .
prime:
- README.md
- hooks
- icon.svg
- lxd-profile.yaml
- metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ requires:
interface: juju-info
scope: container
series:
- bionic
- xenial
- quantal
- xenial
- bionic
- focal
- jammy
17 changes: 17 additions & 0 deletions testcharms/charms/lxd-profile-without-devices/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Overview

Start ubuntu image on a container with the included lxd profile. Most useful
when deploying to a container or an lxd cloud.

# Usaage

juju deploy lxd-profile-without-devices

## Known Limitations and Issues

It doesn't do much, but it does get you a machine you can play with. If not
deployed to an LXD container or cloud, that functionality is a no-op.

# Configuration

None
45 changes: 45 additions & 0 deletions testcharms/charms/lxd-profile-without-devices/charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
architectures: ["amd64", "arm64"]
run-on:
- name: "ubuntu"
channel: "16.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "18.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "20.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "22.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
parts:
tiny-bash:
plugin: dump
source: .
prime:
- README.md
- config.yaml
- hooks
- lxd-profile.yaml
- metadata.yaml
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#name: juju-default
description: lxd profile for testing
config:
security.nesting: "true"
security.privileged: "true"
linux.kernel_modules: ip_tables,ip6_tables
environment.http_proxy: ""

20 changes: 20 additions & 0 deletions testcharms/charms/lxd-profile-without-devices/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: lxd-profile-without-devices
summary: start a juju machine with a lxd profile that has no devices
maintainer: Juju Crew <juju-crew@canonical.com>
description: |
Run an Ubuntu system, with the given lxd-profile
provides:
ubuntu:
interface: ubuntu
extra-bindings:
another:
tags:
- misc
- application_development
subordinate: false
series:
- xenial
- bionic
- focal
- jammy

Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Overview

Start ubuntu image on a container with the included lxd profile. Most useful when deploying to a container or an lxd cloud.
Start ubuntu image on a container with the included lxd profile. Most useful
when deploying to a container or an lxd cloud.

# Usaage

juju deploy lxd-profile

## Known Limitations and Issues

It doesn't do much, but it does get you a machine you can play with. If not deployed to an LXD container or cloud, that functionality is a no-op
It doesn't do much, but it does get you a machine you can play with. If not
deployed to an LXD container or cloud, that functionality is a no-op.

# Configuration

Expand Down
46 changes: 46 additions & 0 deletions testcharms/charms/lxd-profile/charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
type: "charm"
bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
architectures: ["amd64", "arm64"]
run-on:
- name: "ubuntu"
channel: "16.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "18.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "20.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
- name: "ubuntu"
channel: "22.04"
architectures:
- amd64
- aarch64
- arm64
- s390x
parts:
tiny-bash:
plugin: dump
source: .
prime:
- README.md
- config.yaml
- hooks
- icon.svg
- lxd-profile.yaml
- metadata.yaml
1 change: 1 addition & 0 deletions testcharms/charms/lxd-profile/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
options: {}
File renamed without changes.
2 changes: 2 additions & 0 deletions testcharms/charms/lxd-profile/hooks/update-status
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
status-set active "$(uptime | grep -oe 'average: .*' | sed -e 's/average:/load:/')"
Loading