1. Error creating resources while run chameleon to fabric stitching through fabfed

Error creating resources while run chameleon to fabric stitching through fabfed

Home Forums FABRIC General Questions and Discussion Error creating resources while run chameleon to fabric stitching through fabfed

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6635
    Nicholas Skoufis
    Participant

      I am attempting to create a federated network in fabric and chameleon using Fabfed. Using the provided files chi_to_fabric_stitching.fab, fabfed_credentials.yml, and sample_policy,yaml updated with my credentials, I encounter an error saying my requests require authentication when I apply the workflow. Fabfed  validates my configuration but when I apply the workflow I get the following error. Let me know if I should provide any more information. Thanks!

      (base) nskoufis@DESKTOP-FUCRNCV:/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC$ fabfed workflow -v fabfed_credentials.yml -s test_session -validate
      2024-02-28 15:30:11,564 [fabfed.py:35] [INFO] config looks ok
      (base) nskoufis@DESKTOP-FUCRNCV:/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC$ fabfed workflow -v fabfed_credentials.yml -s test_session -apply
      2024-02-28 15:30:50,099 [controller.py:40] [INFO] loaded local stitching policy.
      2024-02-28 15:30:50,104 [policy_helper.py:304] [INFO] Found 3 stitch ports
      2024-02-28 15:30:50,105 [policy_helper.py:361] [INFO] Using stitch port based on site=STAR and providers=[‘fabric’, ‘chi’]:DetailedStitchInfo(stitch_port={‘name’: ‘Chameleon-StarLight’, ‘profile’: ‘Chameleon-StarLight’, ‘preference’: 200, ‘member-of’: [‘CHAMELEON’], ‘provider’: ‘fabric’, ‘device_name’: ‘Chameleon-StarLight’, ‘site’: ‘STAR’, ‘peer’: {‘name’: ‘Chameleon-StarLight’, ‘profile’: ‘fabric’, ‘member-of’: [‘CHAMELEON’], ‘provider’: ‘chi’, ‘preference’: 0, ‘site’: ‘CHI@UC’}}, producer=’chi’, consumer=’fabric’, producer_group={‘name’: ‘CHAMELEON’, ‘producer-for’: [‘fabric’], ‘provider’: ‘chi’, ‘consumer-for’: []}, consumer_group={‘name’: ‘CHAMELEON’, ‘consumer-for’: [‘chi’], ‘provider’: ‘fabric’, ‘producer-for’: []})
      2024-02-28 15:30:50,111 [controller.py:117] [INFO] chi_network@network: stitch_info=StitchInfo(stitch_port={‘name’: ‘Chameleon-StarLight’, ‘profile’: ‘Chameleon-StarLight’, ‘provider’: ‘fabric’, ‘device_name’: ‘Chameleon-StarLight’, ‘site’: ‘STAR’, ‘peer’: {‘profile’: ‘fabric’, ‘provider’: ‘chi’, ‘site’: ‘CHI@UC’}}, producer=’chi’, consumer=’fabric’)
      2024-02-28 15:30:50,114 [controller.py:118] [INFO] chi_network@network: stitch_with=None
      2024-02-28 15:30:50,135 [controller.py:117] [INFO] fabric_network@network: stitch_info=StitchInfo(stitch_port={‘name’: ‘Chameleon-StarLight’, ‘profile’: ‘Chameleon-StarLight’, ‘provider’: ‘fabric’, ‘device_name’: ‘Chameleon-StarLight’, ‘site’: ‘STAR’, ‘peer’: {‘profile’: ‘fabric’, ‘provider’: ‘chi’, ‘site’: ‘CHI@UC’}}, producer=’chi’, consumer=’fabric’)
      2024-02-28 15:30:50,140 [controller.py:118] [INFO] fabric_network@network: stitch_with=DependencyInfo(resource=chi_network@network, attribute=”)
      2024-02-28 15:30:50,203 [controller.py:123] [INFO] Starting PLAN_PHASE: Calling ADD … for 4 resource(s)
      2024-02-28 15:30:52,011 [fabric_provider.py:63] [INFO] Initializing slice test_session
      2024-02-28 15:30:52,029 [node.py:170] [INFO] Adding node: fabric_node0, slice: test_session, site: STAR
      2024-02-28 15:30:52,070 [network_service.py:433] [INFO] Create Network Service: Slice: test_session, Network Name: fabric_node0-v4_net, Type: FABNetv4
      2024-02-28 15:30:52,100 [network_service.py:433] [INFO] Create Network Service: Slice: test_session, Network Name: fabric_node0-v6_net, Type: FABNetv6
      2024-02-28 15:30:52,137 [fabric_node.py:17] [INFO] Node fabric_node0 construtor called …
      2024-02-28 15:30:52,156 [fabric_node.py:40] [WARNING] Node fabric_node0 has no management ip
      2024-02-28 15:30:52,161 [provider.py:121] [INFO] Adding fabric_network@network to pending using fabric_provider@fabric
      2024-02-28 15:30:52,209 [provider.py:126] [INFO] Handling internal dependencies chi_node@node using provider chi_provider@chi
      2024-02-28 15:30:52,225 [dependency_reslover.py:70] [INFO] Resolving: Dependency(key=’network’, resource=chi_network@network, attribute=”, is_external=False) for chi_node@node: value=<fabfed.provider.chi.chi_network.ChiNetwork object at 0x7fa891544520> using chi_provider@chi
      2024-02-28 15:30:52,235 [dependency_reslover.py:100] [INFO] Resolved dependency Dependency(key=’network’, resource=chi_network@network, attribute=”, is_external=False) for chi_node@node using chi_provider@chi
      2024-02-28 15:30:52,247 [dependency_reslover.py:21] [INFO] Checking if all dependencies are resolved for chi_node@node using chi_provider@chi
      2024-02-28 15:30:52,248 [dependency_reslover.py:41] [INFO] Checking if all dependencies are resolved for chi_node@node using chi_provider@chi:ret=True
      2024-02-28 15:30:52,251 [dependency_reslover.py:126] [INFO] Extracted Values: [(<fabfed.provider.chi.chi_network.ChiNetwork object at 0x7fa891544520>,)]:chi_node@node:network using chi_provider@chi
      2024-02-28 15:30:52,283 [controller.py:143] [INFO] Starting CREATE_PHASE: Calling CREATE … for 4 resource(s)
      Now using CHI@UC:
      URL: https://chi.uc.chameleoncloud.org
      Location: Argonne National Laboratory, Lemont, Illinois, USA
      Support contact: help@chameleoncloud.org
      2024-02-28 15:30:53,513 [chi_util.py:36] [ERROR] Error checking for lease test_session-stitch_net-lease The request you have made requires authentication. (HTTP 401) (Request-ID: req-47e23206-b941-45a3-9f18-bc55d00202cc)
      2024-02-28 15:30:53,519 [controller.py:158] [ERROR] The request you have made requires authentication. (HTTP 401) (Request-ID: req-47e23206-b941-45a3-9f18-bc55d00202cc)
      Traceback (most recent call last):
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/controller/controller.py”, line 155, in create
      provider.create_resource(resource=resource.attributes)
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/api/provider.py”, line 160, in create_resource
      raise e
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/api/provider.py”, line 157, in create_resource
      self.do_create_resource(resource=resource)
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_provider.py”, line 133, in do_create_resource
      net.create()
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_network.py”, line 52, in create
      self._lease_helper.create_lease_if_needed(reservations=self.reservations, retry=self._retry)
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_util.py”, line 37, in create_lease_if_needed
      raise e
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_util.py”, line 31, in create_lease_if_needed
      self.lease = chi.lease.get_lease(self.lease_name)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/chi/lease.py”, line 710, in get_lease
      return blazar().lease.get(ref)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/blazarclient/v1/leases.py”, line 39, in get
      resp, body = self.request_manager.get(‘/leases/%s’ % lease_id)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 393, in get
      return self.request(url, ‘GET’, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/blazarclient/base.py”, line 125, in request
      resp, body = super(SessionClient, self).request(
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 552, in request
      resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 255, in request
      return self.session.request(url, method, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 255, in request
      return self.session.request(url, method, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 789, in request
      auth_headers = self.get_auth_headers(auth)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 1214, in get_auth_headers
      return auth.get_headers(self, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/plugin.py”, line 106, in get_headers
      token = self.get_token(session)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/base.py”, line 85, in get_token
      return self.get_access(session).auth_token
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/base.py”, line 131, in get_access
      self.auth_ref = self.get_auth_ref(session)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/v3/federation.py”, line 70, in get_auth_ref
      auth_ref = token_plugin.get_auth_ref(session)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/v3/base.py”, line 185, in get_auth_ref
      resp = session.post(token_url, json=body, headers=headers,
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 1162, in post
      return self.request(url, ‘POST’, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 985, in request
      raise exceptions.from_response(resp, method, url)
      keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-47e23206-b941-45a3-9f18-bc55d00202cc)
      2024-02-28 15:30:54,138 [fabric_slice.py:308] [WARNING] still have pending 1 resources
      Now using CHI@UC:
      URL: https://chi.uc.chameleoncloud.org
      Location: Argonne National Laboratory, Lemont, Illinois, USA
      Support contact: help@chameleoncloud.org
      2024-02-28 15:30:55,064 [chi_util.py:36] [ERROR] Error checking for lease test_session-chi_node0-lease The request you have made requires authentication. (HTTP 401) (Request-ID: req-be72f398-2994-43dc-a093-971a1d36d383)
      2024-02-28 15:30:55,080 [controller.py:158] [ERROR] The request you have made requires authentication. (HTTP 401) (Request-ID: req-be72f398-2994-43dc-a093-971a1d36d383)
      Traceback (most recent call last):
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/controller/controller.py”, line 155, in create
      provider.create_resource(resource=resource.attributes)
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/api/provider.py”, line 160, in create_resource
      raise e
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/api/provider.py”, line 157, in create_resource
      self.do_create_resource(resource=resource)
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_provider.py”, line 142, in do_create_resource
      node.create()
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_node.py”, line 99, in create
      self._lease_helper.create_lease_if_needed(reservations=self.reservations, retry=self._retry)
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_util.py”, line 37, in create_lease_if_needed
      raise e
      File “/mnt/c/Users/Nicho/OneDrive/colege/research/CS/FABRIC/fabfed/fabfed/provider/chi/chi_util.py”, line 31, in create_lease_if_needed
      self.lease = chi.lease.get_lease(self.lease_name)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/chi/lease.py”, line 710, in get_lease
      return blazar().lease.get(ref)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/blazarclient/v1/leases.py”, line 39, in get
      resp, body = self.request_manager.get(‘/leases/%s’ % lease_id)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 393, in get
      return self.request(url, ‘GET’, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/blazarclient/base.py”, line 125, in request
      resp, body = super(SessionClient, self).request(
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 552, in request
      resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 255, in request
      return self.session.request(url, method, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/adapter.py”, line 255, in request
      return self.session.request(url, method, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 789, in request
      auth_headers = self.get_auth_headers(auth)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 1214, in get_auth_headers
      return auth.get_headers(self, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/plugin.py”, line 106, in get_headers
      token = self.get_token(session)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/base.py”, line 85, in get_token
      return self.get_access(session).auth_token
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/base.py”, line 131, in get_access
      self.auth_ref = self.get_auth_ref(session)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/v3/federation.py”, line 70, in get_auth_ref
      auth_ref = token_plugin.get_auth_ref(session)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/identity/v3/base.py”, line 185, in get_auth_ref
      resp = session.post(token_url, json=body, headers=headers,
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 1162, in post
      return self.request(url, ‘POST’, **kwargs)
      File “/home/nskoufis/miniconda3/lib/python3.10/site-packages/keystoneauth1/session.py”, line 985, in request
      raise exceptions.from_response(resp, method, url)
      keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-be72f398-2994-43dc-a093-971a1d36d383)
      2024-02-28 15:30:55,606 [fabfed.py:76] [ERROR] Exceptions while creating resources … Number Of Exceptions=2:[
      msg=The request you have made requires authentication. (HTTP 401) (Request-ID: req-47e23206-b941-45a3-9f18-bc55d00202cc)
      msg=The request you have made requires authentication. (HTTP 401) (Request-ID: req-be72f398-2994-43dc-a093-971a1d36d383)
      ]
      2024-02-28 15:30:55,681 [fabfed.py:93] [INFO] nodes=1, networks=0, services=0, pending=1, failed=2

      #6643
      Abdelilah Essiari
      Participant

        Hi.

        I am a bit confused. The -v options is supposed to be followed by a variable file and is optional.

        • fabfed workflow -v fabfed_credentials.yml -s test_session -validate
        • fabfed workflow -v fabfed_credentials.yml -s test_session -apply

        The location of the credential file is specified in the the .fab config files and it should have a section for the chameleon  credentials.

        Please advise.

         

        #6644
        Abdelilah Essiari
        Participant

          Hi.

          You can first try chameleon by itself under examples/chi and make sure all is well with your credentials.

          There is also an example for fabric by itself under examples/fabric where you can test your fabric credentials

          Both expect the credential file to be under ~/.fabfed/fabfed_credentials.yml

          Hope this helps.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.