Skip to content

[FLOC-4505] [DO NOT MERGE] Remove container API #2921

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

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
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
a956073
Remove the obsolete container API tests and container agent related f…
wallrj Sep 29, 2016
1889f1d
No longer need to cleanup up Flocker managed containers before each a…
wallrj Sep 30, 2016
852b02e
remove unused Mongo Application helpers
wallrj Sep 30, 2016
87db5ad
Merge remote-tracking branch 'origin/master' into remove-obsolete-con…
wallrj Sep 30, 2016
16191be
Merge remote-tracking branch 'origin/master' into remove-obsolete-con…
wallrj Oct 3, 2016
f36ca15
Refactor integration tests to call Docker directly rather than the co…
wallrj Oct 3, 2016
d448383
Dissallow installation of pycparser wheel file. Workaround for https:…
wallrj Oct 3, 2016
e8dedf5
Merge remote-tracking branch 'origin/pycparser-FLOC-4507' into remove…
wallrj Oct 3, 2016
20be050
Work around a lintian error
wallrj Oct 3, 2016
f2886bb
Merge remote-tracking branch 'origin/pycparser-FLOC-4507' into remove…
wallrj Oct 3, 2016
805b423
Fix lint warning
wallrj Oct 3, 2016
955e73a
Revert changes from #2915
wallrj Oct 3, 2016
ba4ff20
A more reliable test for diagnostic bundle content
wallrj Oct 3, 2016
62cd26f
I think the mongo container is being killed before it's flushed all t…
wallrj Oct 3, 2016
2f5e1f1
Remove flocker-container-agent symlink from the clusterhq-flocker-nod…
wallrj Oct 4, 2016
e1bf229
Remove flocker-container-agent init configuration files
wallrj Oct 4, 2016
585ba10
Remove rsyslog configuration for container agent
wallrj Oct 4, 2016
477d48c
Remove the flocker-container-agent main function and its command line…
wallrj Oct 4, 2016
ab6f033
Remove _container module and its tests and ancilliary code.
wallrj Oct 4, 2016
6e239b9
Remove test_deploy from jenkins configuration
wallrj Oct 4, 2016
0420e45
Removed most of the _docker module and related tests.
wallrj Oct 4, 2016
220181e
Remove the jenkins jobs for the deleted tests
wallrj Oct 4, 2016
347b51b
Merge pull request #2917 from ClusterHQ/remove-obsolete-container-acc…
wallrj Oct 4, 2016
85f5f1b
Merge pull request #2916 from ClusterHQ/remove-flocker-container-agen…
wallrj Oct 4, 2016
2086581
Merge remote-tracking branch 'origin/remove-container-api-FLOC-4505' …
wallrj Oct 4, 2016
a8d85f1
Merge pull request #2918 from ClusterHQ/remove-docker-code-FLOC-4509
wallrj Oct 4, 2016
c9154de
Merge remote-tracking branch 'origin/master' into remove-container-ap…
wallrj Dec 17, 2016
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
1 change: 0 additions & 1 deletion admin/package-files/rsyslog/flocker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
# should be discarded by rsyslog.
if $programname == 'flocker-control' then ~
if $programname == 'flocker-dataset-agent' then ~
if $programname == 'flocker-container-agent' then ~
11 changes: 0 additions & 11 deletions admin/package-files/systemd/flocker-container-agent.service

This file was deleted.

25 changes: 0 additions & 25 deletions admin/package-files/upstart/flocker-container-agent.conf

This file was deleted.

4 changes: 0 additions & 4 deletions admin/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ def __str__(self):

# Upstart control files are not installed as conffiles.
'non-conffile-in-etc /etc/init/flocker-dataset-agent.conf',
'non-conffile-in-etc /etc/init/flocker-container-agent.conf',
'non-conffile-in-etc /etc/init/flocker-control.conf',
'non-conffile-in-etc /etc/init/flocker-docker-plugin.conf',

Expand Down Expand Up @@ -673,7 +672,6 @@ def __str__(self):

# Upstart control files are not installed as conffiles.
'file-in-etc-not-marked-as-conffile etc/init/flocker-dataset-agent.conf', # noqa
'file-in-etc-not-marked-as-conffile etc/init/flocker-container-agent.conf', # noqa
'file-in-etc-not-marked-as-conffile etc/init/flocker-control.conf',
'file-in-etc-not-marked-as-conffile etc/init/flocker-docker-plugin.conf', # noqa

Expand Down Expand Up @@ -998,8 +996,6 @@ def omnibus_package_builder(
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-control'),
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-container-agent'),
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-dataset-agent'),
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-diagnostics'),
Expand Down
2 changes: 0 additions & 2 deletions admin/test/test_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,6 @@ def fake_make_dependencies(
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-control'),
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-container-agent'),
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-dataset-agent'),
flocker_node_path),
(FilePath('/opt/flocker/bin/flocker-diagnostics'),
Expand Down
45 changes: 0 additions & 45 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -841,51 +841,6 @@ job_type:
timeout: 30
directories_to_delete: *run_trial_directories_to_delete

run_trial_on_AWS_CentOS_7_flocker.node.functional.test_docker:
# FLOC-3903: docker on centos use loop-devmapper
# by default. That makes it much slower than Ubuntu
# with aufs. It leads to timeouts, but seems to do
# a bit better on the medium instance
on_nodes_with_labels: 'aws-centos-7-SELinux-T2Medium'
module: flocker.node.functional.test_docker
with_steps:
- { type: 'shell', cli: *run_trial_cli }
archive_artifacts: *flocker_artifacts
publish_test_results: true
coverage_report: true
clean_repo: true
# Increase the timeout due to FLOC-3903
timeout: 45
directories_to_delete: *run_trial_directories_to_delete

# Split out just to do the CentOS version above,
# for the reasons outlined in that section
run_trial_on_AWS_Ubuntu_Trusty_flocker.node.functional.test_docker:
on_nodes_with_labels: 'aws-ubuntu-trusty-T2Medium'
module: flocker.node.functional.test_docker
with_steps:
- { type: 'shell', cli: *run_trial_cli }
archive_artifacts: *flocker_artifacts
publish_test_results: true
coverage_report: true
clean_repo: true
timeout: 30
directories_to_delete: *run_trial_directories_to_delete

# Split out just to do the CentOS version above,
# for the reasons outlined in that section
run_trial_on_AWS_Ubuntu_Xenial_flocker.node.functional.test_docker:
on_nodes_with_labels: 'aws-ubuntu-xenial-T2Medium'
module: flocker.node.functional.test_docker
with_steps:
- { type: 'shell', cli: *run_trial_cli }
archive_artifacts: *flocker_artifacts
publish_test_results: true
coverage_report: true
clean_repo: true
timeout: 30
directories_to_delete: *run_trial_directories_to_delete

run_trial_for_storage_driver:
run_trial_for_ebs_storage_driver_on_CentOS_7:
on_nodes_with_labels: 'aws-centos-7-SELinux-T2Medium'
Expand Down
31 changes: 9 additions & 22 deletions flocker/acceptance/endtoend/test_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from ...common.runner import run_ssh, download
from ...testtools import AsyncTestCase, async_runner
from ..testtools import require_cluster, ACCEPTANCE_TEST_TIMEOUT
from testtools.matchers import MatchesAny, Equals


class DiagnosticsTests(AsyncTestCase):
Expand All @@ -23,12 +22,7 @@ class DiagnosticsTests(AsyncTestCase):

run_tests_with = async_runner(timeout=ACCEPTANCE_TEST_TIMEOUT)

# This only requires the container agent to check
# that its log is collected. We still care about
# that working, so we run it. We should stop
# running it for this test when we get closer
# to never running it in production.
@require_cluster(1, require_container_agent=True)
@require_cluster(1)
def test_export(self, cluster):
"""
``flocker-diagnostics`` creates an archive of all Flocker service logs
Expand Down Expand Up @@ -62,20 +56,15 @@ def download_archive(remote_archive_path):

def verify_archive(local_archive_path):
with tarfile.open(local_archive_path.path) as f:
actual_basenames = set()
actual_filenames = set()
for name in f.getnames():
basename = os.path.basename(name)
if name == basename:
# Ignore the directory entry
continue
actual_basenames.add(basename)
actual_filenames.add(basename)

container_agent_basenames = set([
'flocker-container-agent_startup.gz',
'flocker-container-agent_eliot.gz',
])

expected_basenames = set([
expected_filenames = set([
'flocker-control_startup.gz',
'flocker-control_eliot.gz',
'flocker-dataset-agent_startup.gz',
Expand All @@ -95,13 +84,11 @@ def verify_archive(local_archive_path):
'fdisk',
'lshw',
])
self.expectThat(
actual_basenames,
MatchesAny(
Equals(expected_basenames),
Equals(expected_basenames.union(
container_agent_basenames)),
)
# Missing expected filenames will show up as differences.
# Unexpected filenames will be ignored.
self.assertEqual(
set(),
expected_filenames.difference(actual_filenames)
)

verifying = downloading.addCallback(verify_archive)
Expand Down
2 changes: 1 addition & 1 deletion flocker/acceptance/integration/test_mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def insert_data(test_case, host, port):

def got_client(client):
database = client.example
database.posts.insert({u"the data": u"it moves"})
database.posts.insert_one({u"the data": u"it moves"})
d.addCallback(got_client)
return d

Expand Down
Loading