2025-03-25 22:51:56,227 - INFO - Domain Default found not creating
2025-03-25 22:51:56,386 - INFO - Project ctest-TestBasicPolicy-08282249 not found, creating it
2025-03-25 22:51:56,872 - INFO - Created Project:ctest-TestBasicPolicy-08282249, ID : de9da758-6052-4c26-b8a3-3ee72e067692
2025-03-25 22:51:58,363 - INFO - ================================================================================
2025-03-25 22:51:58,363 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-25 22:51:58,363 - 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-03-25 22:51:58,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.17': '0'}} with
2025-03-25 22:51:58,617 - INFO - Initial checks done. Running the testcase now
2025-03-25 22:51:58,617 - INFO -
2025-03-25 22:51:59,179 - DEBUG - Response for create_network : {'network': {'id': '36d81598-b4d1-4b2a-a5b3-be07c2071782', 'name': 'ctest-vn-76124477', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-76124477'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 22:51:59,400 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c98252fa-c60c-448a-9f78-c4db540b0e31', 'name': '', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'network_id': '36d81598-b4d1-4b2a-a5b3-be07c2071782', 'ip_version': 4, 'cidr': '187.73.140.128/26', 'allocation_pools': [{'start': '187.73.140.130', 'end': '187.73.140.190'}], 'gateway_ip': '187.73.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.73.140.130', 'tags': [], 'project_id': 'de9da75860524c26b8a33ee72e067692'}}
2025-03-25 22:51:59,419 - INFO - Created VN ctest-vn-76124477
2025-03-25 22:51:59,474 - DEBUG - VN ctest-vn-76124477 UUID is 36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:51:59,787 - DEBUG - Response for create_network : {'network': {'id': 'a8b660e7-d083-4755-9536-1e6bc54b53c9', 'name': 'ctest-vn-59013523', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-59013523'], 'port_security_enabled': True, 'description': ''}}
2025-03-25 22:51:59,972 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f93fc4b7-f0df-4c4c-8966-32dc7ce8255c', 'name': '', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'network_id': 'a8b660e7-d083-4755-9536-1e6bc54b53c9', 'ip_version': 4, 'cidr': '25.101.82.0/26', 'allocation_pools': [{'start': '25.101.82.2', 'end': '25.101.82.62'}], 'gateway_ip': '25.101.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.101.82.2', 'tags': [], 'project_id': 'de9da75860524c26b8a33ee72e067692'}}
2025-03-25 22:51:59,993 - INFO - Created VN ctest-vn-59013523
2025-03-25 22:52:00,051 - DEBUG - VN ctest-vn-59013523 UUID is a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:00,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477, 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-08282249:ctest-vn-59013523, 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-03-25 22:52:00,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36d81598-b4d1-4b2a-a5b3-be07c2071782', 'name': 'ctest-vn-76124477', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c98252fa-c60c-448a-9f78-c4db540b0e31'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-76124477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678']], 'subnet_ipam': [{'subnet_cidr': '187.73.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 22:52:00,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8b660e7-d083-4755-9536-1e6bc54b53c9', 'name': 'ctest-vn-59013523', 'tenant_id': 'de9da75860524c26b8a33ee72e067692', 'project_id': 'de9da75860524c26b8a33ee72e067692', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f93fc4b7-f0df-4c4c-8966-32dc7ce8255c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-vn-59013523'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678']], 'subnet_ipam': [{'subnet_cidr': '25.101.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-25 22:52:00,947 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-25 22:52:01,248 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-25 22:52:01,276 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d
2025-03-25 22:52:01,291 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692
2025-03-25 22:52:01,364 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:52:01,377 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:52:01,389 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f
2025-03-25 22:52:01,397 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f
2025-03-25 22:52:01,404 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/c401efd9-c980-472b-9d01-c6ac051ff321
2025-03-25 22:52:01,410 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 22:52:01,411 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:52:01,421 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f
2025-03-25 22:52:01,438 - INFO - Verified VN network id 8 for VN 36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:52:01,438 - INFO - Verifications in API Server for VN ctest-vn-76124477 passed
2025-03-25 22:52:01,438 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:52:01,452 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f
2025-03-25 22:52:01,463 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/9a83a7aa-1cc6-4135-b506-6b789fc01d2f
2025-03-25 22:52:01,472 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/c401efd9-c980-472b-9d01-c6ac051ff321
2025-03-25 22:52:01,486 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08282249', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3951932418630437674', 'uuid-lslong': '11940095977618610050'}, 'enable': 'true', 'created': '2025-03-25T22:51:59', 'last-modified': '2025-03-25T22:52:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025206'}
2025-03-25 22:52:01,494 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-25 22:52:01,494 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76124477 passed
2025-03-25 22:52:01,494 - DEBUG - ====Verifying policy data for ctest-vn-76124477 in API_Server ======
2025-03-25 22:52:01,494 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-25 22:52:01,500 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d
2025-03-25 22:52:01,512 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692
2025-03-25 22:52:01,588 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/36d81598-b4d1-4b2a-a5b3-be07c2071782
2025-03-25 22:52:01,600 - DEBUG - ==>Verifying data for policy with id: 0a66e0f0-dc30-4444-a995-58ad5119c10e, fqn: ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678']
2025-03-25 22:52:01,600 - INFO - VN ctest-vn-76124477 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 22:52:01,600 - DEBUG - Verifying the vn in opserver
2025-03-25 22:52:01,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477 virtual network link through opserver 10.0.0.42
2025-03-25 22:52:01,601 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-25 22:52:01,897 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-25 22:52:01,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477?flat'}
2025-03-25 22:52:01,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-76124477 is found in opserver
2025-03-25 22:52:01,982 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 22:52:01,988 - DEBUG - VRF ids for VN ctest-vn-76124477: {}
2025-03-25 22:52:01,988 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-25 22:52:01,994 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d
2025-03-25 22:52:02,010 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692
2025-03-25 22:52:02,080 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:02,094 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:02,105 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf
2025-03-25 22:52:02,115 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf
2025-03-25 22:52:02,123 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7d521dd4-d17b-4c91-b5fc-3fe9159e843a
2025-03-25 22:52:02,131 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 22:52:02,131 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:02,141 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf
2025-03-25 22:52:02,155 - INFO - Verified VN network id 9 for VN a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:02,156 - INFO - Verifications in API Server for VN ctest-vn-59013523 passed
2025-03-25 22:52:02,156 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:02,166 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf
2025-03-25 22:52:02,175 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f8a47e-a8c4-451b-a058-29ac40139bdf
2025-03-25 22:52:02,183 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/7d521dd4-d17b-4c91-b5fc-3fe9159e843a
2025-03-25 22:52:02,197 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08282249', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12157010792885208917', 'uuid-lslong': '10751814608614020041'}, 'enable': 'true', 'created': '2025-03-25T22:51:59', 'last-modified': '2025-03-25T22:52:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.484560'}
2025-03-25 22:52:02,204 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-25 22:52:02,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59013523 passed
2025-03-25 22:52:02,204 - DEBUG - ====Verifying policy data for ctest-vn-59013523 in API_Server ======
2025-03-25 22:52:02,204 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-25 22:52:02,211 - DEBUG - Requesting: http://10.0.0.42:8082/domain/ca46b7cc-dcbd-45fd-92ab-57f84d85105d
2025-03-25 22:52:02,228 - DEBUG - Requesting: http://10.0.0.42:8082/project/de9da758-6052-4c26-b8a3-3ee72e067692
2025-03-25 22:52:02,305 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/a8b660e7-d083-4755-9536-1e6bc54b53c9
2025-03-25 22:52:02,316 - DEBUG - ==>Verifying data for policy with id: 0a66e0f0-dc30-4444-a995-58ad5119c10e, fqn: ['default-domain', 'ctest-TestBasicPolicy-08282249', 'ctest-policy-allow-all-04825678']
2025-03-25 22:52:02,316 - INFO - VN ctest-vn-59013523 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-25 22:52:02,316 - DEBUG - Verifying the vn in opserver
2025-03-25 22:52:02,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523 virtual network link through opserver 10.0.0.42
2025-03-25 22:52:02,316 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-25 22:52:02,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523?flat'}
2025-03-25 22:52:02,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08282249:ctest-vn-59013523 is found in opserver
2025-03-25 22:52:02,337 - DEBUG - Do not have enough data to verify VN in agent
2025-03-25 22:52:02,342 - DEBUG - VRF ids for VN ctest-vn-59013523: {}
2025-03-25 22:52:02,404 - DEBUG - Services list from nova: [