2025-02-04 23:22:40,725 - INFO - Domain Default found not creating
2025-02-04 23:22:40,863 - INFO - Project ctest-TestBasicPolicy-70721232 not found, creating it
2025-02-04 23:22:41,298 - INFO - Created Project:ctest-TestBasicPolicy-70721232, ID : 2bd8f5d8-2805-4d42-b700-6c80c72e0281
2025-02-04 23:22:42,838 - INFO - ================================================================================
2025-02-04 23:22:42,838 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-04 23:22:42,838 - 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
2025-02-04 23:22:43,093 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with
2025-02-04 23:22:43,093 - INFO - Initial checks done. Running the testcase now
2025-02-04 23:22:43,093 - INFO -
2025-02-04 23:22:43,701 - DEBUG - Response for create_network : {'network': {'id': '2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42', 'name': 'ctest-vn-30525011', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-30525011'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 23:22:43,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '651b1a46-6d72-425b-9457-21fc935b6cd6', 'name': '', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'network_id': '2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42', 'ip_version': 4, 'cidr': '84.194.87.64/26', 'allocation_pools': [{'start': '84.194.87.66', 'end': '84.194.87.126'}], 'gateway_ip': '84.194.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.194.87.66', 'tags': [], 'project_id': '2bd8f5d828054d42b7006c80c72e0281'}}
2025-02-04 23:22:43,927 - INFO - Created VN ctest-vn-30525011
2025-02-04 23:22:43,981 - DEBUG - VN ctest-vn-30525011 UUID is 2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:44,285 - DEBUG - Response for create_network : {'network': {'id': '8f83e9ab-ecaf-4c30-94d4-cb7a32e365de', 'name': 'ctest-vn-71894479', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-71894479'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 23:22:44,519 - DEBUG - Response for create_subnet : {'subnet': {'id': '91b7e0b0-7c54-4b84-875c-5e4104776647', 'name': '', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'network_id': '8f83e9ab-ecaf-4c30-94d4-cb7a32e365de', 'ip_version': 4, 'cidr': '155.130.192.64/26', 'allocation_pools': [{'start': '155.130.192.66', 'end': '155.130.192.126'}], 'gateway_ip': '155.130.192.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.130.192.66', 'tags': [], 'project_id': '2bd8f5d828054d42b7006c80c72e0281'}}
2025-02-04 23:22:44,540 - INFO - Created VN ctest-vn-71894479
2025-02-04 23:22:44,593 - DEBUG - VN ctest-vn-71894479 UUID is 8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:44,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011, 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-70721232:ctest-vn-71894479, 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]
2025-02-04 23:22:45,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42', 'name': 'ctest-vn-30525011', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['651b1a46-6d72-425b-9457-21fc935b6cd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-30525011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225']], 'subnet_ipam': [{'subnet_cidr': '84.194.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 23:22:45,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f83e9ab-ecaf-4c30-94d4-cb7a32e365de', 'name': 'ctest-vn-71894479', 'tenant_id': '2bd8f5d828054d42b7006c80c72e0281', 'project_id': '2bd8f5d828054d42b7006c80c72e0281', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91b7e0b0-7c54-4b84-875c-5e4104776647'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-vn-71894479'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225']], 'subnet_ipam': [{'subnet_cidr': '155.130.192.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 23:22:45,489 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 23:22:45,823 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 23:22:45,853 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2
2025-02-04 23:22:45,869 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281
2025-02-04 23:22:45,953 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:45,967 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:45,980 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e
2025-02-04 23:22:45,990 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e
2025-02-04 23:22:45,998 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/bc2338a5-02fd-48c0-91ba-ceeeadb9dca4
2025-02-04 23:22:46,006 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-04 23:22:46,006 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:46,020 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e
2025-02-04 23:22:46,038 - INFO - Verified VN network id 9 for VN 2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:46,038 - INFO - Verifications in API Server for VN ctest-vn-30525011 passed
2025-02-04 23:22:46,038 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:46,050 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e
2025-02-04 23:22:46,058 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/af8ab02a-43c6-4295-9c60-d9493319e44e
2025-02-04 23:22:46,067 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/bc2338a5-02fd-48c0-91ba-ceeeadb9dca4
2025-02-04 23:22:46,082 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721232', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3354893464350443378', 'uuid-lslong': '12469855437106056002'}, 'enable': 'true', 'created': '2025-02-04T23:22:43', 'last-modified': '2025-02-04T23:22:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076609'}
2025-02-04 23:22:46,089 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-04 23:22:46,089 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30525011 passed
2025-02-04 23:22:46,090 - DEBUG - ====Verifying policy data for ctest-vn-30525011 in API_Server ======
2025-02-04 23:22:46,090 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 23:22:46,096 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2
2025-02-04 23:22:46,112 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281
2025-02-04 23:22:46,184 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/2e8ef9d4-b1e3-4772-ad0d-d373b12e0b42
2025-02-04 23:22:46,199 - DEBUG - ==>Verifying data for policy with id: bb7b9eb7-5b30-40d9-bbb1-e03664d49ccc, fqn: ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225']
2025-02-04 23:22:46,199 - INFO - VN ctest-vn-30525011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 23:22:46,199 - DEBUG - Verifying the vn in opserver
2025-02-04 23:22:46,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011 virtual network link through opserver 10.0.0.17
2025-02-04 23:22:46,199 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-04 23:22:46,538 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-04 23:22:46,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011?flat'}
2025-02-04 23:22:46,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-30525011 is found in opserver
2025-02-04 23:22:46,618 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 23:22:46,638 - DEBUG - VRF ids for VN ctest-vn-30525011: {}
2025-02-04 23:22:46,638 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 23:22:46,645 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2
2025-02-04 23:22:46,659 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281
2025-02-04 23:22:46,742 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:46,758 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:46,770 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132
2025-02-04 23:22:46,779 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132
2025-02-04 23:22:46,787 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1cb772c5-f349-48aa-a780-9bbbf55b9eb1
2025-02-04 23:22:46,794 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 23:22:46,794 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:46,806 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132
2025-02-04 23:22:46,823 - INFO - Verified VN network id 10 for VN 8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:46,823 - INFO - Verifications in API Server for VN ctest-vn-71894479 passed
2025-02-04 23:22:46,823 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:46,835 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132
2025-02-04 23:22:46,844 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/351fd5c9-bb02-4e8e-8385-0f05d5b7b132
2025-02-04 23:22:46,852 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/1cb772c5-f349-48aa-a780-9bbbf55b9eb1
2025-02-04 23:22:46,866 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70721232', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10341366093992381488', 'uuid-lslong': '10724420338376205790'}, 'enable': 'true', 'created': '2025-02-04T23:22:44', 'last-modified': '2025-02-04T23:22:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591970'}
2025-02-04 23:22:46,873 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 23:22:46,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71894479 passed
2025-02-04 23:22:46,873 - DEBUG - ====Verifying policy data for ctest-vn-71894479 in API_Server ======
2025-02-04 23:22:46,874 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-02-04 23:22:46,880 - DEBUG - Requesting: http://10.0.0.17:8082/domain/de791cb6-5ef8-4549-80c7-b035a70831e2
2025-02-04 23:22:46,895 - DEBUG - Requesting: http://10.0.0.17:8082/project/2bd8f5d8-2805-4d42-b700-6c80c72e0281
2025-02-04 23:22:46,973 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/8f83e9ab-ecaf-4c30-94d4-cb7a32e365de
2025-02-04 23:22:46,989 - DEBUG - ==>Verifying data for policy with id: bb7b9eb7-5b30-40d9-bbb1-e03664d49ccc, fqn: ['default-domain', 'ctest-TestBasicPolicy-70721232', 'ctest-policy-allow-all-01287225']
2025-02-04 23:22:46,989 - INFO - VN ctest-vn-71894479 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 23:22:46,989 - DEBUG - Verifying the vn in opserver
2025-02-04 23:22:46,989 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479 virtual network link through opserver 10.0.0.17
2025-02-04 23:22:46,989 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-02-04 23:22:47,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479?flat'}
2025-02-04 23:22:47,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70721232:ctest-vn-71894479 is found in opserver
2025-02-04 23:22:47,013 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 23:22:47,020 - DEBUG - VRF ids for VN ctest-vn-71894479: {}
2025-02-04 23:22:47,081 - DEBUG - Services list from nova: [