2025-02-04 20:53:41,735 - INFO - Domain Default found not creating
2025-02-04 20:53:41,870 - INFO - Project ctest-TestBasicPolicy-40360381 not found, creating it
2025-02-04 20:53:42,306 - INFO - Created Project:ctest-TestBasicPolicy-40360381, ID : 9419290a-6230-47c5-b9ad-738f5c185d9a
2025-02-04 20:53:43,697 - INFO - ================================================================================
2025-02-04 20:53:43,697 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-04 20:53:43,697 - 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 20:53:43,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with
2025-02-04 20:53:43,962 - INFO - Initial checks done. Running the testcase now
2025-02-04 20:53:43,962 - INFO -
2025-02-04 20:53:44,563 - DEBUG - Response for create_network : {'network': {'id': '96ae3d56-fd79-4f1a-8a6f-5553cb422139', 'name': 'ctest-vn-27646682', 'tenant_id': '9419290a623047c5b9ad738f5c185d9a', 'project_id': '9419290a623047c5b9ad738f5c185d9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-vn-27646682'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 20:53:44,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d8ea63b-bf92-43b3-a996-7125f9c95041', 'name': '', 'tenant_id': '9419290a623047c5b9ad738f5c185d9a', 'network_id': '96ae3d56-fd79-4f1a-8a6f-5553cb422139', 'ip_version': 4, 'cidr': '17.251.189.64/26', 'allocation_pools': [{'start': '17.251.189.66', 'end': '17.251.189.126'}], 'gateway_ip': '17.251.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.251.189.66', 'tags': [], 'project_id': '9419290a623047c5b9ad738f5c185d9a'}}
2025-02-04 20:53:44,797 - INFO - Created VN ctest-vn-27646682
2025-02-04 20:53:44,848 - DEBUG - VN ctest-vn-27646682 UUID is 96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:45,134 - DEBUG - Response for create_network : {'network': {'id': 'a84f94e5-92e4-4dfc-b15a-04c9f90de8f1', 'name': 'ctest-vn-07893203', 'tenant_id': '9419290a623047c5b9ad738f5c185d9a', 'project_id': '9419290a623047c5b9ad738f5c185d9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-vn-07893203'], 'port_security_enabled': True, 'description': ''}}
2025-02-04 20:53:45,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '72f9246e-3dd2-454a-8b2a-75d19d82afd6', 'name': '', 'tenant_id': '9419290a623047c5b9ad738f5c185d9a', 'network_id': 'a84f94e5-92e4-4dfc-b15a-04c9f90de8f1', 'ip_version': 4, 'cidr': '95.158.58.0/26', 'allocation_pools': [{'start': '95.158.58.2', 'end': '95.158.58.62'}], 'gateway_ip': '95.158.58.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.158.58.2', 'tags': [], 'project_id': '9419290a623047c5b9ad738f5c185d9a'}}
2025-02-04 20:53:45,351 - INFO - Created VN ctest-vn-07893203
2025-02-04 20:53:45,404 - DEBUG - VN ctest-vn-07893203 UUID is a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:45,556 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-27646682, 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-40360381:ctest-vn-07893203, 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 20:53:45,847 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96ae3d56-fd79-4f1a-8a6f-5553cb422139', 'name': 'ctest-vn-27646682', 'tenant_id': '9419290a623047c5b9ad738f5c185d9a', 'project_id': '9419290a623047c5b9ad738f5c185d9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d8ea63b-bf92-43b3-a996-7125f9c95041'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-vn-27646682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-policy-allow-all-60052142']], 'subnet_ipam': [{'subnet_cidr': '17.251.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 20:53:46,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a84f94e5-92e4-4dfc-b15a-04c9f90de8f1', 'name': 'ctest-vn-07893203', 'tenant_id': '9419290a623047c5b9ad738f5c185d9a', 'project_id': '9419290a623047c5b9ad738f5c185d9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72f9246e-3dd2-454a-8b2a-75d19d82afd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-vn-07893203'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-policy-allow-all-60052142']], 'subnet_ipam': [{'subnet_cidr': '95.158.58.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-04 20:53:46,264 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-04 20:53:46,556 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-04 20:53:46,584 - DEBUG - Requesting: http://10.0.0.23:8082/domain/481956bf-cb0b-4e1b-8d08-53b6181d07a9
2025-02-04 20:53:46,601 - DEBUG - Requesting: http://10.0.0.23:8082/project/9419290a-6230-47c5-b9ad-738f5c185d9a
2025-02-04 20:53:46,678 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:46,689 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:46,698 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2bcfd391-08af-4823-908c-351659d1d304
2025-02-04 20:53:46,705 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2bcfd391-08af-4823-908c-351659d1d304
2025-02-04 20:53:46,711 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0e24c984-73d5-4023-9611-81a12144052e
2025-02-04 20:53:46,717 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-04 20:53:46,717 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:46,726 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2bcfd391-08af-4823-908c-351659d1d304
2025-02-04 20:53:46,740 - INFO - Verified VN network id 9 for VN 96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:46,740 - INFO - Verifications in API Server for VN ctest-vn-27646682 passed
2025-02-04 20:53:46,740 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:46,749 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2bcfd391-08af-4823-908c-351659d1d304
2025-02-04 20:53:46,756 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/2bcfd391-08af-4823-908c-351659d1d304
2025-02-04 20:53:46,763 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0e24c984-73d5-4023-9611-81a12144052e
2025-02-04 20:53:46,775 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-27646682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40360381', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10857683195465912090', 'uuid-lslong': '9975285518029693241'}, 'enable': 'true', 'created': '2025-02-04T20:53:44', 'last-modified': '2025-02-04T20:53:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948562'}
2025-02-04 20:53:46,782 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-04 20:53:46,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27646682 passed
2025-02-04 20:53:46,782 - DEBUG - ====Verifying policy data for ctest-vn-27646682 in API_Server ======
2025-02-04 20:53:46,782 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-04 20:53:46,788 - DEBUG - Requesting: http://10.0.0.23:8082/domain/481956bf-cb0b-4e1b-8d08-53b6181d07a9
2025-02-04 20:53:46,800 - DEBUG - Requesting: http://10.0.0.23:8082/project/9419290a-6230-47c5-b9ad-738f5c185d9a
2025-02-04 20:53:46,872 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/96ae3d56-fd79-4f1a-8a6f-5553cb422139
2025-02-04 20:53:46,883 - DEBUG - ==>Verifying data for policy with id: 95ab3a5f-b3ac-40b6-9499-c08b9843e5d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-policy-allow-all-60052142']
2025-02-04 20:53:46,884 - INFO - VN ctest-vn-27646682 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 20:53:46,884 - DEBUG - Verifying the vn in opserver
2025-02-04 20:53:46,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-27646682 virtual network link through opserver 10.0.0.23
2025-02-04 20:53:46,884 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-02-04 20:53:47,181 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-02-04 20:53:47,239 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-27646682', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-27646682?flat'}
2025-02-04 20:53:47,239 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-27646682 is found in opserver
2025-02-04 20:53:47,251 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 20:53:47,256 - DEBUG - VRF ids for VN ctest-vn-27646682: {}
2025-02-04 20:53:47,256 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-04 20:53:47,261 - DEBUG - Requesting: http://10.0.0.23:8082/domain/481956bf-cb0b-4e1b-8d08-53b6181d07a9
2025-02-04 20:53:47,273 - DEBUG - Requesting: http://10.0.0.23:8082/project/9419290a-6230-47c5-b9ad-738f5c185d9a
2025-02-04 20:53:47,346 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:47,360 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:47,370 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/01b7fe78-b65d-406b-95e3-98ffb3e51686
2025-02-04 20:53:47,378 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/01b7fe78-b65d-406b-95e3-98ffb3e51686
2025-02-04 20:53:47,385 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/93ef127e-8d91-4963-87f9-b86853259d80
2025-02-04 20:53:47,392 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 20:53:47,392 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:47,401 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/01b7fe78-b65d-406b-95e3-98ffb3e51686
2025-02-04 20:53:47,417 - INFO - Verified VN network id 10 for VN a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:47,417 - INFO - Verifications in API Server for VN ctest-vn-07893203 passed
2025-02-04 20:53:47,417 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:47,428 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/01b7fe78-b65d-406b-95e3-98ffb3e51686
2025-02-04 20:53:47,435 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/01b7fe78-b65d-406b-95e3-98ffb3e51686
2025-02-04 20:53:47,442 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/93ef127e-8d91-4963-87f9-b86853259d80
2025-02-04 20:53:47,453 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-07893203', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40360381', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12128076035264892412', 'uuid-lslong': '12779532158130579697'}, 'enable': 'true', 'created': '2025-02-04T20:53:45', 'last-modified': '2025-02-04T20:53:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.410029'}
2025-02-04 20:53:47,459 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-04 20:53:47,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07893203 passed
2025-02-04 20:53:47,459 - DEBUG - ====Verifying policy data for ctest-vn-07893203 in API_Server ======
2025-02-04 20:53:47,459 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-02-04 20:53:47,464 - DEBUG - Requesting: http://10.0.0.23:8082/domain/481956bf-cb0b-4e1b-8d08-53b6181d07a9
2025-02-04 20:53:47,477 - DEBUG - Requesting: http://10.0.0.23:8082/project/9419290a-6230-47c5-b9ad-738f5c185d9a
2025-02-04 20:53:47,555 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a84f94e5-92e4-4dfc-b15a-04c9f90de8f1
2025-02-04 20:53:47,566 - DEBUG - ==>Verifying data for policy with id: 95ab3a5f-b3ac-40b6-9499-c08b9843e5d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-40360381', 'ctest-policy-allow-all-60052142']
2025-02-04 20:53:47,566 - INFO - VN ctest-vn-07893203 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-04 20:53:47,566 - DEBUG - Verifying the vn in opserver
2025-02-04 20:53:47,566 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-07893203 virtual network link through opserver 10.0.0.23
2025-02-04 20:53:47,566 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-02-04 20:53:47,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-07893203', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-07893203?flat'}
2025-02-04 20:53:47,577 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40360381:ctest-vn-07893203 is found in opserver
2025-02-04 20:53:47,587 - DEBUG - Do not have enough data to verify VN in agent
2025-02-04 20:53:47,593 - DEBUG - VRF ids for VN ctest-vn-07893203: {}
2025-02-04 20:53:47,648 - DEBUG - Services list from nova: [