2025-03-13 02:25:17,879 - INFO - Domain Default found not creating
2025-03-13 02:25:18,062 - INFO - Project ctest-TestBasicPolicy-13786569 not found, creating it
2025-03-13 02:25:18,731 - INFO - Created Project:ctest-TestBasicPolicy-13786569, ID : 4493ac3d-2c94-47d5-a08c-314b1c13933c
2025-03-13 02:25:20,478 - INFO - ================================================================================
2025-03-13 02:25:20,478 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-13 02:25:20,479 - 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-13 02:25:20,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.18': '0'}} with
2025-03-13 02:25:20,742 - INFO - Initial checks done. Running the testcase now
2025-03-13 02:25:20,742 - INFO -
2025-03-13 02:25:21,352 - DEBUG - Response for create_network : {'network': {'id': '158caffa-b888-4a44-924c-732bc778f7b4', 'name': 'ctest-vn-15504252', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-15504252'], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:25:21,545 - DEBUG - Response for create_subnet : {'subnet': {'id': '234da1ad-d83f-45f6-99d3-ca51d52a143d', 'name': '', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'network_id': '158caffa-b888-4a44-924c-732bc778f7b4', 'ip_version': 4, 'cidr': '29.13.243.128/26', 'allocation_pools': [{'start': '29.13.243.130', 'end': '29.13.243.190'}], 'gateway_ip': '29.13.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.13.243.130', 'tags': [], 'project_id': '4493ac3d2c9447d5a08c314b1c13933c'}}
2025-03-13 02:25:21,570 - INFO - Created VN ctest-vn-15504252
2025-03-13 02:25:21,622 - DEBUG - VN ctest-vn-15504252 UUID is 158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:21,955 - DEBUG - Response for create_network : {'network': {'id': 'e224ccfa-aaca-4e79-9a5b-3821d7142759', 'name': 'ctest-vn-63012799', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-63012799'], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:25:22,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abe5727d-dcb4-479e-aebc-05e975c198f0', 'name': '', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'network_id': 'e224ccfa-aaca-4e79-9a5b-3821d7142759', 'ip_version': 4, 'cidr': '188.131.44.192/26', 'allocation_pools': [{'start': '188.131.44.194', 'end': '188.131.44.254'}], 'gateway_ip': '188.131.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.131.44.194', 'tags': [], 'project_id': '4493ac3d2c9447d5a08c314b1c13933c'}}
2025-03-13 02:25:22,184 - INFO - Created VN ctest-vn-63012799
2025-03-13 02:25:22,242 - DEBUG - VN ctest-vn-63012799 UUID is e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:22,368 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252, 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-13786569:ctest-vn-63012799, 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-13 02:25:22,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '158caffa-b888-4a44-924c-732bc778f7b4', 'name': 'ctest-vn-15504252', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['234da1ad-d83f-45f6-99d3-ca51d52a143d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-15504252'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675']], 'subnet_ipam': [{'subnet_cidr': '29.13.243.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:25:23,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e224ccfa-aaca-4e79-9a5b-3821d7142759', 'name': 'ctest-vn-63012799', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abe5727d-dcb4-479e-aebc-05e975c198f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-63012799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675']], 'subnet_ipam': [{'subnet_cidr': '188.131.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-13 02:25:23,162 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-13 02:25:23,476 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-13 02:25:23,512 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115
2025-03-13 02:25:23,530 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c
2025-03-13 02:25:23,613 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:23,626 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:23,636 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131
2025-03-13 02:25:23,646 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131
2025-03-13 02:25:23,655 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b38bbb5e-5ca3-4967-aa4c-e263c1091aaf
2025-03-13 02:25:23,663 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-13 02:25:23,663 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:23,672 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131
2025-03-13 02:25:23,690 - INFO - Verified VN network id 9 for VN 158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:23,690 - INFO - Verifications in API Server for VN ctest-vn-15504252 passed
2025-03-13 02:25:23,690 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:23,701 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131
2025-03-13 02:25:23,710 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131
2025-03-13 02:25:23,719 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b38bbb5e-5ca3-4967-aa4c-e263c1091aaf
2025-03-13 02:25:23,737 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13786569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1552809462908602948', 'uuid-lslong': '10541927459634870196'}, 'enable': 'true', 'created': '2025-03-13T02:25:21', 'last-modified': '2025-03-13T02:25:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068756'}
2025-03-13 02:25:23,746 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-13 02:25:23,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15504252 passed
2025-03-13 02:25:23,746 - DEBUG - ====Verifying policy data for ctest-vn-15504252 in API_Server ======
2025-03-13 02:25:23,746 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-13 02:25:23,754 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115
2025-03-13 02:25:23,770 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c
2025-03-13 02:25:23,850 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4
2025-03-13 02:25:23,862 - DEBUG - ==>Verifying data for policy with id: 6ffc3a6a-152f-4e61-a77e-7c10f34aff59, fqn: ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675']
2025-03-13 02:25:23,862 - INFO - VN ctest-vn-15504252 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-13 02:25:23,863 - DEBUG - Verifying the vn in opserver
2025-03-13 02:25:23,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252 virtual network link through opserver 10.0.0.34
2025-03-13 02:25:23,863 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-13 02:25:24,163 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-13 02:25:24,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252?flat'}
2025-03-13 02:25:24,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252 is found in opserver
2025-03-13 02:25:24,248 - DEBUG - Do not have enough data to verify VN in agent
2025-03-13 02:25:24,255 - DEBUG - VRF ids for VN ctest-vn-15504252: {}
2025-03-13 02:25:24,255 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-13 02:25:24,262 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115
2025-03-13 02:25:24,276 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c
2025-03-13 02:25:24,355 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:24,369 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:24,381 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100
2025-03-13 02:25:24,390 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100
2025-03-13 02:25:24,400 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6ef7d68d-bdee-42d7-9b8e-f5dd30539bc4
2025-03-13 02:25:24,410 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-13 02:25:24,410 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:24,422 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100
2025-03-13 02:25:24,440 - INFO - Verified VN network id 10 for VN e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:24,441 - INFO - Verifications in API Server for VN ctest-vn-63012799 passed
2025-03-13 02:25:24,441 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:24,453 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100
2025-03-13 02:25:24,462 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100
2025-03-13 02:25:24,471 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6ef7d68d-bdee-42d7-9b8e-f5dd30539bc4
2025-03-13 02:25:24,487 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13786569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16295374728712572537', 'uuid-lslong': '11122545422715070297'}, 'enable': 'true', 'created': '2025-03-13T02:25:21', 'last-modified': '2025-03-13T02:25:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.559474'}
2025-03-13 02:25:24,495 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-13 02:25:24,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63012799 passed
2025-03-13 02:25:24,496 - DEBUG - ====Verifying policy data for ctest-vn-63012799 in API_Server ======
2025-03-13 02:25:24,496 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-13 02:25:24,504 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115
2025-03-13 02:25:24,520 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c
2025-03-13 02:25:24,601 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759
2025-03-13 02:25:24,611 - DEBUG - ==>Verifying data for policy with id: 6ffc3a6a-152f-4e61-a77e-7c10f34aff59, fqn: ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675']
2025-03-13 02:25:24,611 - INFO - VN ctest-vn-63012799 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-13 02:25:24,611 - DEBUG - Verifying the vn in opserver
2025-03-13 02:25:24,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799 virtual network link through opserver 10.0.0.34
2025-03-13 02:25:24,611 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-13 02:25:24,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799?flat'}
2025-03-13 02:25:24,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799 is found in opserver
2025-03-13 02:25:24,639 - DEBUG - Do not have enough data to verify VN in agent
2025-03-13 02:25:24,645 - DEBUG - VRF ids for VN ctest-vn-63012799: {}
2025-03-13 02:25:24,713 - DEBUG - Services list from nova: [