diff --git a/etc-conf/dbus/system.d/com.redhat.RHSM1.conf b/etc-conf/dbus/system.d/com.redhat.RHSM1.conf
index 4c04437aa9..33f60e13a0 100644
--- a/etc-conf/dbus/system.d/com.redhat.RHSM1.conf
+++ b/etc-conf/dbus/system.d/com.redhat.RHSM1.conf
@@ -14,9 +14,6 @@
-
-
diff --git a/src/plugins/libdnf/README.md b/src/plugins/libdnf/README.md
index a9ed69817e..a3ae69e11d 100644
--- a/src/plugins/libdnf/README.md
+++ b/src/plugins/libdnf/README.md
@@ -115,12 +115,6 @@ To use testing repository you have to do several steps:
subscription-manager register --username admin --password admin --org admin
```
-* Attach some subscription:
-
- ```
- subscription-manager attach --pool
- ```
-
* Choose some repository from output of `subscription-manager repos --list` and
enable the repository:
diff --git a/src/rhsmlib/client_info.py b/src/rhsmlib/client_info.py
index aed83ffbd5..7dbe113153 100644
--- a/src/rhsmlib/client_info.py
+++ b/src/rhsmlib/client_info.py
@@ -14,7 +14,7 @@
"""
This module holds information about current state of client application
like sender of D-bus method, current subscription-manager command (register,
-attach, ...), dnf command, etc.
+status...), dnf command, etc.
"""
import logging
diff --git a/src/rhsmlib/dbus/constants.py b/src/rhsmlib/dbus/constants.py
index 6215467dbc..98ddc33a7b 100644
--- a/src/rhsmlib/dbus/constants.py
+++ b/src/rhsmlib/dbus/constants.py
@@ -24,8 +24,6 @@
"UNREGISTER_DBUS_PATH",
"CONFIG_INTERFACE",
"CONFIG_DBUS_PATH",
- "ATTACH_INTERFACE",
- "ATTACH_DBUS_PATH",
"PRODUCTS_INTERFACE",
"PRODUCTS_DBUS_PATH",
"ENTITLEMENT_INTERFACE",
@@ -69,9 +67,6 @@
CONFIG_INTERFACE = "%s.%s" % (INTERFACE_BASE, "Config")
CONFIG_DBUS_PATH = "%s/%s" % (ROOT_DBUS_PATH, "Config")
-ATTACH_INTERFACE = "%s.%s" % (INTERFACE_BASE, "Attach")
-ATTACH_DBUS_PATH = "%s/%s" % (ROOT_DBUS_PATH, "Attach")
-
PRODUCTS_INTERFACE = "%s.%s" % (INTERFACE_BASE, "Products")
PRODUCTS_DBUS_PATH = "%s/%s" % (ROOT_DBUS_PATH, "Products")
diff --git a/src/subscription_manager/entcertlib.py b/src/subscription_manager/entcertlib.py
index 84d3f0fc9d..c2ac33b516 100644
--- a/src/subscription_manager/entcertlib.py
+++ b/src/subscription_manager/entcertlib.py
@@ -108,9 +108,7 @@ def perform(self) -> "EntCertUpdateReport":
log.info("certs updated:\n%s", self.report)
self.syslog_results()
- # We call EntCertlibActionInvoker.update() solo from
- # the 'attach' cli instead of an ActionClient. So
- # we need to refresh the ent_dir object before calling
+ # We need to refresh the ent_dir object before calling
# content updating actions.
self.ent_dir.refresh()
diff --git a/test/functional_tests/README.md b/test/functional_tests/README.md
index 02c5e2cf7b..231e8b1562 100644
--- a/test/functional_tests/README.md
+++ b/test/functional_tests/README.md
@@ -24,7 +24,6 @@ How to run functional tests?
cd ./ansible_playbooks
ansible-playbook ./configure_package_manager.yml --extra-vars="candlepin_hostname="
ansible-playbook ./register_system.yml
- ansible-playbook ./attach_subscriptions.yml
ansible-playbook ./test_install_remove_packages.yml
ansible-playbook ./test_not_remove_prod_cert_for_disabled_repo.yml
```
diff --git a/test/functional_tests/ansible_playbooks/attach_subscriptions.yml b/test/functional_tests/ansible_playbooks/attach_subscriptions.yml
deleted file mode 100644
index e0bb6152d9..0000000000
--- a/test/functional_tests/ansible_playbooks/attach_subscriptions.yml
+++ /dev/null
@@ -1,23 +0,0 @@
----
-- hosts: clients
- vars:
- subscription_skus: ['awesomeos-x86_64', 'awesomeos-all-x86-cont']
- remote_user: root
- tasks:
-
- # Try to find pool ids
- - name: try to find pool ids
- shell: subscription-manager list --available --matches={{ item }} | gawk '/Pool ID:/{ print $3; exit }'
- register: cmd_output
- with_items: "{{ subscription_skus }}"
-
- - set_fact:
- pool_ids: "{{ cmd_output | json_query('results[*].stdout_lines[0]') }}"
-
- - debug:
- msg: "{{ pool_ids }}"
-
- - name: attach pools
- shell: subscription-manager attach --pool {{ item }}
- with_items: "{{ pool_ids }}"
-
diff --git a/test/smoke.sh b/test/smoke.sh
index 9130825723..8408ba5d19 100755
--- a/test/smoke.sh
+++ b/test/smoke.sh
@@ -226,7 +226,6 @@ run_sm "0" list --available
run_sm "0" service-level
run_sm "0" service-level --list
run_sm "0" repos
-run_sm "0" attach
# Note: with current test data, the awesome-os repos will never be enabled
run_yum "0" repolist
diff --git a/test/test_managercli.py b/test/test_managercli.py
index 9b921a459f..1412c266b0 100644
--- a/test/test_managercli.py
+++ b/test/test_managercli.py
@@ -212,7 +212,7 @@ def test_unknown_args_cause_exit(self):
sys,
"argv",
# test with some subcommand; sub-man prints help without it
- ["subscription-manager", "attach", "--foo", "bar", "baz"],
+ ["subscription-manager", "register", "--foo", "bar", "baz"],
):
try:
self.cc.main()
diff --git a/test/zypper/test_serviceplugin.py b/test/zypper/test_serviceplugin.py
index 16472d525c..f4d858edcf 100644
--- a/test/zypper/test_serviceplugin.py
+++ b/test/zypper/test_serviceplugin.py
@@ -40,9 +40,6 @@ def test_provides_subman_repos_if_registered_and_subscribed(self):
"--serverurl={RHSM_URL}".format(sub_man=self.SUB_MAN, **os.environ),
shell=True,
)
- subprocess.call(
- "{sub_man} attach --pool={RHSM_POOL}".format(sub_man=self.SUB_MAN, **os.environ), shell=True
- )
self.assertTrue(self.has_subman_repos())
def test_can_download_rpm(self):
@@ -51,9 +48,6 @@ def test_can_download_rpm(self):
"--serverurl={RHSM_URL}".format(sub_man=self.SUB_MAN, **os.environ),
shell=True,
)
- subprocess.check_call(
- "{sub_man} attach --pool={RHSM_POOL}".format(sub_man=self.SUB_MAN, **os.environ), shell=True
- )
subprocess.check_call(
"{sub_man} repos --enable={RHSM_TEST_REPO}".format(sub_man=self.SUB_MAN, **os.environ), shell=True
)