2025-01-13 11:29:56,658 - INFO - Domain Default found not creating
2025-01-13 11:29:56,795 - INFO - Project ctest-TestBasicPolicy-96225544 not found, creating it
2025-01-13 11:29:57,279 - INFO - Created Project:ctest-TestBasicPolicy-96225544, ID : a6af1bed-32be-46f1-a432-5d784dec20b9
2025-01-13 11:29:58,726 - INFO - ================================================================================
2025-01-13 11:29:58,727 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 11:29:58,727 - 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-01-13 11:29:58,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.14': '0'}} with
2025-01-13 11:29:58,983 - INFO - Initial checks done. Running the testcase now
2025-01-13 11:29:58,983 - INFO -
2025-01-13 11:29:59,533 - DEBUG - Response for create_network : {'network': {'id': '0d6f99f8-8e10-4014-8c86-ca86c78309fe', 'name': 'ctest-vn-06808170', 'tenant_id': 'a6af1bed32be46f1a4325d784dec20b9', 'project_id': 'a6af1bed32be46f1a4325d784dec20b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-vn-06808170'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:29:59,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '139d034e-c30a-4e81-a62a-fd1f4f9ed290', 'name': '', 'tenant_id': 'a6af1bed32be46f1a4325d784dec20b9', 'network_id': '0d6f99f8-8e10-4014-8c86-ca86c78309fe', 'ip_version': 4, 'cidr': '182.145.112.192/26', 'allocation_pools': [{'start': '182.145.112.194', 'end': '182.145.112.254'}], 'gateway_ip': '182.145.112.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.145.112.194', 'tags': [], 'project_id': 'a6af1bed32be46f1a4325d784dec20b9'}}
2025-01-13 11:29:59,753 - INFO - Created VN ctest-vn-06808170
2025-01-13 11:29:59,809 - DEBUG - VN ctest-vn-06808170 UUID is 0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:00,151 - DEBUG - Response for create_network : {'network': {'id': '4cf8d8a3-3488-4f99-8bad-858d1ee1ed24', 'name': 'ctest-vn-55173625', 'tenant_id': 'a6af1bed32be46f1a4325d784dec20b9', 'project_id': 'a6af1bed32be46f1a4325d784dec20b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-vn-55173625'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:30:00,305 - DEBUG - Response for create_subnet : {'subnet': {'id': '81469e7b-136f-4e6f-be4c-e55302259e92', 'name': '', 'tenant_id': 'a6af1bed32be46f1a4325d784dec20b9', 'network_id': '4cf8d8a3-3488-4f99-8bad-858d1ee1ed24', 'ip_version': 4, 'cidr': '72.132.102.0/26', 'allocation_pools': [{'start': '72.132.102.2', 'end': '72.132.102.62'}], 'gateway_ip': '72.132.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.132.102.2', 'tags': [], 'project_id': 'a6af1bed32be46f1a4325d784dec20b9'}}
2025-01-13 11:30:00,323 - INFO - Created VN ctest-vn-55173625
2025-01-13 11:30:00,377 - DEBUG - VN ctest-vn-55173625 UUID is 4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:00,529 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-06808170, 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-96225544:ctest-vn-55173625, 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-01-13 11:30:00,848 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d6f99f8-8e10-4014-8c86-ca86c78309fe', 'name': 'ctest-vn-06808170', 'tenant_id': 'a6af1bed32be46f1a4325d784dec20b9', 'project_id': 'a6af1bed32be46f1a4325d784dec20b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['139d034e-c30a-4e81-a62a-fd1f4f9ed290'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-vn-06808170'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-policy-allow-all-99491532']], 'subnet_ipam': [{'subnet_cidr': '182.145.112.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:30:01,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4cf8d8a3-3488-4f99-8bad-858d1ee1ed24', 'name': 'ctest-vn-55173625', 'tenant_id': 'a6af1bed32be46f1a4325d784dec20b9', 'project_id': 'a6af1bed32be46f1a4325d784dec20b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81469e7b-136f-4e6f-be4c-e55302259e92'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-vn-55173625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-policy-allow-all-99491532']], 'subnet_ipam': [{'subnet_cidr': '72.132.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:30:01,297 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-13 11:30:01,592 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-13 11:30:01,625 - DEBUG - Requesting: http://10.0.0.32:8082/domain/da1cfe9b-4a5f-413c-8dfb-c1aa45b82595
2025-01-13 11:30:01,640 - DEBUG - Requesting: http://10.0.0.32:8082/project/a6af1bed-32be-46f1-a432-5d784dec20b9
2025-01-13 11:30:01,721 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:01,735 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:01,745 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9fe178bd-07f8-42a8-b1c1-e8dbccd1245e
2025-01-13 11:30:01,753 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9fe178bd-07f8-42a8-b1c1-e8dbccd1245e
2025-01-13 11:30:01,761 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/28969ec4-b070-49e2-b24e-63c6e916a849
2025-01-13 11:30:01,767 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 11:30:01,768 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:01,778 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9fe178bd-07f8-42a8-b1c1-e8dbccd1245e
2025-01-13 11:30:01,794 - INFO - Verified VN network id 7 for VN 0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:01,795 - INFO - Verifications in API Server for VN ctest-vn-06808170 passed
2025-01-13 11:30:01,795 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:01,810 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9fe178bd-07f8-42a8-b1c1-e8dbccd1245e
2025-01-13 11:30:01,820 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/9fe178bd-07f8-42a8-b1c1-e8dbccd1245e
2025-01-13 11:30:01,828 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/28969ec4-b070-49e2-b24e-63c6e916a849
2025-01-13 11:30:01,844 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-06808170', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96225544', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '968161737722314772', 'uuid-lslong': '10126003492410821118'}, 'enable': 'true', 'created': '2025-01-13T11:29:59', 'last-modified': '2025-01-13T11:30:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015471'}
2025-01-13 11:30:01,851 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 11:30:01,851 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06808170 passed
2025-01-13 11:30:01,852 - DEBUG - ====Verifying policy data for ctest-vn-06808170 in API_Server ======
2025-01-13 11:30:01,852 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-13 11:30:01,858 - DEBUG - Requesting: http://10.0.0.32:8082/domain/da1cfe9b-4a5f-413c-8dfb-c1aa45b82595
2025-01-13 11:30:01,871 - DEBUG - Requesting: http://10.0.0.32:8082/project/a6af1bed-32be-46f1-a432-5d784dec20b9
2025-01-13 11:30:01,975 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0d6f99f8-8e10-4014-8c86-ca86c78309fe
2025-01-13 11:30:01,987 - DEBUG - ==>Verifying data for policy with id: 962dd566-62c7-4677-a7a7-1a4fb23e225d, fqn: ['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-policy-allow-all-99491532']
2025-01-13 11:30:01,987 - INFO - VN ctest-vn-06808170 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 11:30:01,987 - DEBUG - Verifying the vn in opserver
2025-01-13 11:30:01,987 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-06808170 virtual network link through opserver 10.0.0.32
2025-01-13 11:30:01,987 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-13 11:30:02,294 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-13 11:30:02,363 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-06808170', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-06808170?flat'}
2025-01-13 11:30:02,363 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-06808170 is found in opserver
2025-01-13 11:30:02,379 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 11:30:02,386 - DEBUG - VRF ids for VN ctest-vn-06808170: {}
2025-01-13 11:30:02,387 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-13 11:30:02,394 - DEBUG - Requesting: http://10.0.0.32:8082/domain/da1cfe9b-4a5f-413c-8dfb-c1aa45b82595
2025-01-13 11:30:02,408 - DEBUG - Requesting: http://10.0.0.32:8082/project/a6af1bed-32be-46f1-a432-5d784dec20b9
2025-01-13 11:30:02,495 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:02,514 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:02,526 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c4093233-3822-401d-967d-4da7acb9a5ee
2025-01-13 11:30:02,534 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c4093233-3822-401d-967d-4da7acb9a5ee
2025-01-13 11:30:02,542 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/4163936f-8f42-4991-8afb-15e5ad624955
2025-01-13 11:30:02,560 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 11:30:02,560 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:02,572 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c4093233-3822-401d-967d-4da7acb9a5ee
2025-01-13 11:30:02,588 - INFO - Verified VN network id 8 for VN 4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:02,588 - INFO - Verifications in API Server for VN ctest-vn-55173625 passed
2025-01-13 11:30:02,588 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:02,602 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c4093233-3822-401d-967d-4da7acb9a5ee
2025-01-13 11:30:02,611 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c4093233-3822-401d-967d-4da7acb9a5ee
2025-01-13 11:30:02,620 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/4163936f-8f42-4991-8afb-15e5ad624955
2025-01-13 11:30:02,634 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-55173625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96225544', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5546421136579383193', 'uuid-lslong': '10064847583397932324'}, 'enable': 'true', 'created': '2025-01-13T11:30:00', 'last-modified': '2025-01-13T11:30:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547527'}
2025-01-13 11:30:02,641 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 11:30:02,641 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55173625 passed
2025-01-13 11:30:02,641 - DEBUG - ====Verifying policy data for ctest-vn-55173625 in API_Server ======
2025-01-13 11:30:02,641 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-13 11:30:02,648 - DEBUG - Requesting: http://10.0.0.32:8082/domain/da1cfe9b-4a5f-413c-8dfb-c1aa45b82595
2025-01-13 11:30:02,663 - DEBUG - Requesting: http://10.0.0.32:8082/project/a6af1bed-32be-46f1-a432-5d784dec20b9
2025-01-13 11:30:02,743 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/4cf8d8a3-3488-4f99-8bad-858d1ee1ed24
2025-01-13 11:30:02,756 - DEBUG - ==>Verifying data for policy with id: 962dd566-62c7-4677-a7a7-1a4fb23e225d, fqn: ['default-domain', 'ctest-TestBasicPolicy-96225544', 'ctest-policy-allow-all-99491532']
2025-01-13 11:30:02,756 - INFO - VN ctest-vn-55173625 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 11:30:02,756 - DEBUG - Verifying the vn in opserver
2025-01-13 11:30:02,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-55173625 virtual network link through opserver 10.0.0.32
2025-01-13 11:30:02,756 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-13 11:30:02,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-55173625', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-55173625?flat'}
2025-01-13 11:30:02,768 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96225544:ctest-vn-55173625 is found in opserver
2025-01-13 11:30:02,782 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 11:30:02,787 - DEBUG - VRF ids for VN ctest-vn-55173625: {}
2025-01-13 11:30:02,866 - DEBUG - Services list from nova: [