2025-04-15 06:08:24,452 - INFO - Domain Default found not creating
2025-04-15 06:08:24,641 - INFO - Project ctest-TestBasicPolicy-55970823 not found, creating it
2025-04-15 06:08:25,091 - INFO - Created Project:ctest-TestBasicPolicy-55970823, ID : bf74ad04-c172-4f06-9546-4cbf2cc9a4a2
2025-04-15 06:08:26,688 - INFO - ================================================================================
2025-04-15 06:08:26,688 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 06:08:26,688 - 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-04-15 06:08:26,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-04-15 06:08:26,949 - INFO - Initial checks done. Running the testcase now
2025-04-15 06:08:26,949 - INFO -
2025-04-15 06:08:27,545 - DEBUG - Response for create_network : {'network': {'id': '4a253321-7cf0-4244-b84c-974059443b9a', 'name': 'ctest-vn-05778729', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-05778729'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 06:08:27,701 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd69652fa-8070-4b92-9e52-105ea61f3bab', 'name': '', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'network_id': '4a253321-7cf0-4244-b84c-974059443b9a', 'ip_version': 4, 'cidr': '40.22.83.128/26', 'allocation_pools': [{'start': '40.22.83.130', 'end': '40.22.83.190'}], 'gateway_ip': '40.22.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.22.83.130', 'tags': [], 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2'}}
2025-04-15 06:08:27,726 - INFO - Created VN ctest-vn-05778729
2025-04-15 06:08:27,785 - DEBUG - VN ctest-vn-05778729 UUID is 4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:28,100 - DEBUG - Response for create_network : {'network': {'id': '8ff72ece-9964-4259-a9bb-b55e98adb764', 'name': 'ctest-vn-11679088', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-11679088'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 06:08:28,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ce55fd1-498e-441e-8a0e-d9d725926967', 'name': '', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'network_id': '8ff72ece-9964-4259-a9bb-b55e98adb764', 'ip_version': 4, 'cidr': '62.102.16.192/26', 'allocation_pools': [{'start': '62.102.16.194', 'end': '62.102.16.254'}], 'gateway_ip': '62.102.16.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.102.16.194', 'tags': [], 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2'}}
2025-04-15 06:08:28,355 - INFO - Created VN ctest-vn-11679088
2025-04-15 06:08:28,408 - DEBUG - VN ctest-vn-11679088 UUID is 8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:28,525 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729, 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-55970823:ctest-vn-11679088, 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-04-15 06:08:28,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a253321-7cf0-4244-b84c-974059443b9a', 'name': 'ctest-vn-05778729', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d69652fa-8070-4b92-9e52-105ea61f3bab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-05778729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501']], 'subnet_ipam': [{'subnet_cidr': '40.22.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 06:08:29,082 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ff72ece-9964-4259-a9bb-b55e98adb764', 'name': 'ctest-vn-11679088', 'tenant_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'project_id': 'bf74ad04c1724f0695464cbf2cc9a4a2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ce55fd1-498e-441e-8a0e-d9d725926967'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-vn-11679088'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501']], 'subnet_ipam': [{'subnet_cidr': '62.102.16.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 06:08:29,248 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 06:08:29,558 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 06:08:29,588 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95
2025-04-15 06:08:29,604 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2
2025-04-15 06:08:29,679 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:29,691 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:29,700 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d
2025-04-15 06:08:29,709 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d
2025-04-15 06:08:29,717 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/5f6d66dc-7f3f-4af5-b2c7-615a2ebc0928
2025-04-15 06:08:29,726 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 06:08:29,726 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:29,735 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d
2025-04-15 06:08:29,753 - INFO - Verified VN network id 8 for VN 4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:29,753 - INFO - Verifications in API Server for VN ctest-vn-05778729 passed
2025-04-15 06:08:29,753 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:29,764 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d
2025-04-15 06:08:29,772 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/35f83c0d-67b6-4f68-b2b2-de3335ce5e7d
2025-04-15 06:08:29,781 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/5f6d66dc-7f3f-4af5-b2c7-615a2ebc0928
2025-04-15 06:08:29,796 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55970823', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5342732751868019268', 'uuid-lslong': '13280155703840095130'}, 'enable': 'true', 'created': '2025-04-15T06:08:27', 'last-modified': '2025-04-15T06:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978917'}
2025-04-15 06:08:29,804 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 06:08:29,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05778729 passed
2025-04-15 06:08:29,805 - DEBUG - ====Verifying policy data for ctest-vn-05778729 in API_Server ======
2025-04-15 06:08:29,805 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 06:08:29,811 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95
2025-04-15 06:08:29,826 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2
2025-04-15 06:08:29,898 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4a253321-7cf0-4244-b84c-974059443b9a
2025-04-15 06:08:29,908 - DEBUG - ==>Verifying data for policy with id: f3cb23d0-1c10-4fcb-a479-86accc494088, fqn: ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501']
2025-04-15 06:08:29,909 - INFO - VN ctest-vn-05778729 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 06:08:29,909 - DEBUG - Verifying the vn in opserver
2025-04-15 06:08:29,909 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729 virtual network link through opserver 10.0.0.65
2025-04-15 06:08:29,909 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 06:08:30,209 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 06:08:30,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729?flat'}
2025-04-15 06:08:30,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-05778729 is found in opserver
2025-04-15 06:08:30,299 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 06:08:30,305 - DEBUG - VRF ids for VN ctest-vn-05778729: {}
2025-04-15 06:08:30,305 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 06:08:30,313 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95
2025-04-15 06:08:30,326 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2
2025-04-15 06:08:30,401 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:30,413 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:30,424 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9
2025-04-15 06:08:30,432 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9
2025-04-15 06:08:30,440 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fb204624-ddf8-42f8-bd21-ececc050ad00
2025-04-15 06:08:30,448 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 06:08:30,448 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:30,458 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9
2025-04-15 06:08:30,474 - INFO - Verified VN network id 9 for VN 8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:30,475 - INFO - Verifications in API Server for VN ctest-vn-11679088 passed
2025-04-15 06:08:30,475 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:30,487 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9
2025-04-15 06:08:30,497 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d8dc17fe-55d3-46de-ac4e-b12fdace7ed9
2025-04-15 06:08:30,507 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fb204624-ddf8-42f8-bd21-ececc050ad00
2025-04-15 06:08:30,522 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55970823', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10373811731542852185', 'uuid-lslong': '12230568630947788644'}, 'enable': 'true', 'created': '2025-04-15T06:08:28', 'last-modified': '2025-04-15T06:08:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466939'}
2025-04-15 06:08:30,532 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 06:08:30,532 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11679088 passed
2025-04-15 06:08:30,532 - DEBUG - ====Verifying policy data for ctest-vn-11679088 in API_Server ======
2025-04-15 06:08:30,532 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-04-15 06:08:30,539 - DEBUG - Requesting: http://10.0.0.65:8082/domain/050e7ace-3506-4055-860b-c7ded3ebea95
2025-04-15 06:08:30,553 - DEBUG - Requesting: http://10.0.0.65:8082/project/bf74ad04-c172-4f06-9546-4cbf2cc9a4a2
2025-04-15 06:08:30,628 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/8ff72ece-9964-4259-a9bb-b55e98adb764
2025-04-15 06:08:30,638 - DEBUG - ==>Verifying data for policy with id: f3cb23d0-1c10-4fcb-a479-86accc494088, fqn: ['default-domain', 'ctest-TestBasicPolicy-55970823', 'ctest-policy-allow-all-52718501']
2025-04-15 06:08:30,638 - INFO - VN ctest-vn-11679088 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 06:08:30,638 - DEBUG - Verifying the vn in opserver
2025-04-15 06:08:30,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088 virtual network link through opserver 10.0.0.65
2025-04-15 06:08:30,638 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-04-15 06:08:30,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088?flat'}
2025-04-15 06:08:30,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55970823:ctest-vn-11679088 is found in opserver
2025-04-15 06:08:30,663 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 06:08:30,669 - DEBUG - VRF ids for VN ctest-vn-11679088: {}
2025-04-15 06:08:30,731 - DEBUG - Services list from nova: [