2024-09-13 18:51:51,707 - INFO - Domain Default found not creating
2024-09-13 18:51:52,023 - INFO - Project ctest-TestBasicPolicy-02470596 not found, creating it
2024-09-13 18:51:52,785 - INFO - Created Project:ctest-TestBasicPolicy-02470596, ID : c183d51d-175f-42f4-b925-70c0972c88bb
2024-09-13 18:51:54,911 - INFO - ================================================================================
2024-09-13 18:51:54,911 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-13 18:51:54,911 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2024-09-13 18:51:55,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.27': '0'}} with
2024-09-13 18:51:55,237 - INFO - Initial checks done. Running the testcase now
2024-09-13 18:51:55,237 - INFO -
2024-09-13 18:51:56,200 - DEBUG - Response for create_network : {'network': {'id': 'b8e7af64-262f-48f4-adec-5b8546f024e2', 'name': 'ctest-vn-25999356', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-25999356'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 18:51:56,402 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbed52c9-1db3-415d-a336-a4a1e1445f7a', 'name': '', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'network_id': 'b8e7af64-262f-48f4-adec-5b8546f024e2', 'ip_version': 4, 'cidr': '176.164.213.192/26', 'allocation_pools': [{'start': '176.164.213.194', 'end': '176.164.213.254'}], 'gateway_ip': '176.164.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.164.213.194', 'tags': [], 'project_id': 'c183d51d175f42f4b92570c0972c88bb'}}
2024-09-13 18:51:56,427 - INFO - Created VN ctest-vn-25999356
2024-09-13 18:51:56,498 - DEBUG - VN ctest-vn-25999356 UUID is b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:51:57,153 - DEBUG - Response for create_network : {'network': {'id': 'fc1aacae-3ae4-46e5-baea-f6360ade2a05', 'name': 'ctest-vn-15475902', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-15475902'], 'port_security_enabled': True, 'description': ''}}
2024-09-13 18:51:57,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '80d948ee-6e1d-49ca-b95c-dab755b26170', 'name': '', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'network_id': 'fc1aacae-3ae4-46e5-baea-f6360ade2a05', 'ip_version': 4, 'cidr': '96.101.206.128/26', 'allocation_pools': [{'start': '96.101.206.130', 'end': '96.101.206.190'}], 'gateway_ip': '96.101.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.101.206.130', 'tags': [], 'project_id': 'c183d51d175f42f4b92570c0972c88bb'}}
2024-09-13 18:51:57,421 - INFO - Created VN ctest-vn-15475902
2024-09-13 18:51:57,498 - DEBUG - VN ctest-vn-15475902 UUID is fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:51:57,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2024-09-13 18:51:58,353 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8e7af64-262f-48f4-adec-5b8546f024e2', 'name': 'ctest-vn-25999356', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bbed52c9-1db3-415d-a336-a4a1e1445f7a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-25999356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257']], 'subnet_ipam': [{'subnet_cidr': '176.164.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 18:51:58,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc1aacae-3ae4-46e5-baea-f6360ade2a05', 'name': 'ctest-vn-15475902', 'tenant_id': 'c183d51d175f42f4b92570c0972c88bb', 'project_id': 'c183d51d175f42f4b92570c0972c88bb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80d948ee-6e1d-49ca-b95c-dab755b26170'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-vn-15475902'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257']], 'subnet_ipam': [{'subnet_cidr': '96.101.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-13 18:51:58,941 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-13 18:51:59,255 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-13 18:51:59,303 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474
2024-09-13 18:51:59,357 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb
2024-09-13 18:51:59,475 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:51:59,530 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:51:59,579 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e
2024-09-13 18:51:59,608 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e
2024-09-13 18:51:59,632 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/344bd129-ea8e-46c4-a240-1fd1c912b429
2024-09-13 18:51:59,653 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 18:51:59,654 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:51:59,690 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e
2024-09-13 18:51:59,755 - INFO - Verified VN network id 8 for VN b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:51:59,755 - INFO - Verifications in API Server for VN ctest-vn-25999356 passed
2024-09-13 18:51:59,755 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:51:59,803 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e
2024-09-13 18:51:59,832 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/c833f5f9-8cb9-4062-af53-c83bf6cef06e
2024-09-13 18:51:59,859 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/344bd129-ea8e-46c4-a240-1fd1c912b429
2024-09-13 18:51:59,904 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02470596', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13323810867271125236', 'uuid-lslong': '12532492491044168930'}, 'enable': 'true', 'created': '2024-09-13T18:51:56', 'last-modified': '2024-09-13T18:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.607856'}
2024-09-13 18:51:59,930 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-13 18:51:59,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25999356 passed
2024-09-13 18:51:59,931 - DEBUG - ====Verifying policy data for ctest-vn-25999356 in API_Server ======
2024-09-13 18:51:59,932 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-13 18:51:59,950 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474
2024-09-13 18:51:59,991 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb
2024-09-13 18:52:00,114 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/b8e7af64-262f-48f4-adec-5b8546f024e2
2024-09-13 18:52:00,145 - DEBUG - ==>Verifying data for policy with id: 9a145853-c62d-495e-8ff7-42e531025f59, fqn: ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257']
2024-09-13 18:52:00,145 - INFO - VN ctest-vn-25999356 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 18:52:00,145 - DEBUG - Verifying the vn in opserver
2024-09-13 18:52:00,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356 virtual network link through opserver 10.0.0.36
2024-09-13 18:52:00,146 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-13 18:52:00,495 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-13 18:52:00,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356?flat'}
2024-09-13 18:52:00,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-25999356 is found in opserver
2024-09-13 18:52:00,710 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 18:52:00,727 - DEBUG - VRF ids for VN ctest-vn-25999356: {}
2024-09-13 18:52:00,727 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-13 18:52:00,743 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474
2024-09-13 18:52:00,774 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb
2024-09-13 18:52:00,912 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:52:00,954 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:52:00,986 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7
2024-09-13 18:52:00,999 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7
2024-09-13 18:52:01,013 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/60e20ba7-bc8c-44ac-9487-9244218508fc
2024-09-13 18:52:01,024 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 18:52:01,024 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:52:01,045 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7
2024-09-13 18:52:01,074 - INFO - Verified VN network id 9 for VN fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:52:01,074 - INFO - Verifications in API Server for VN ctest-vn-15475902 passed
2024-09-13 18:52:01,074 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:52:01,099 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7
2024-09-13 18:52:01,119 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/9c806444-669c-4fa5-801f-27baaf382bc7
2024-09-13 18:52:01,137 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/60e20ba7-bc8c-44ac-9487-9244218508fc
2024-09-13 18:52:01,177 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02470596', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18166021911264642789', 'uuid-lslong': '13468848347575888389'}, 'enable': 'true', 'created': '2024-09-13T18:51:57', 'last-modified': '2024-09-13T18:51:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.477733'}
2024-09-13 18:52:01,203 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-13 18:52:01,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15475902 passed
2024-09-13 18:52:01,204 - DEBUG - ====Verifying policy data for ctest-vn-15475902 in API_Server ======
2024-09-13 18:52:01,205 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-13 18:52:01,225 - DEBUG - Requesting: http://10.0.0.36:8082/domain/a6c90b88-7d35-4d0d-8bdf-ca0d89d4f474
2024-09-13 18:52:01,266 - DEBUG - Requesting: http://10.0.0.36:8082/project/c183d51d-175f-42f4-b925-70c0972c88bb
2024-09-13 18:52:01,434 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/fc1aacae-3ae4-46e5-baea-f6360ade2a05
2024-09-13 18:52:01,488 - DEBUG - ==>Verifying data for policy with id: 9a145853-c62d-495e-8ff7-42e531025f59, fqn: ['default-domain', 'ctest-TestBasicPolicy-02470596', 'ctest-policy-allow-all-09749257']
2024-09-13 18:52:01,488 - INFO - VN ctest-vn-15475902 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-13 18:52:01,489 - DEBUG - Verifying the vn in opserver
2024-09-13 18:52:01,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902 virtual network link through opserver 10.0.0.36
2024-09-13 18:52:01,489 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-13 18:52:01,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902?flat'}
2024-09-13 18:52:01,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02470596:ctest-vn-15475902 is found in opserver
2024-09-13 18:52:01,542 - DEBUG - Do not have enough data to verify VN in agent
2024-09-13 18:52:01,558 - DEBUG - VRF ids for VN ctest-vn-15475902: {}
2024-09-13 18:52:01,683 - DEBUG - Services list from nova: [