2025-04-04 15:15:40,871 - INFO - Domain Default found not creating
2025-04-04 15:15:41,050 - INFO - Project ctest-TestBasicPolicy-64700274 not found, creating it
2025-04-04 15:15:41,516 - INFO - Created Project:ctest-TestBasicPolicy-64700274, ID : acfb79ab-7796-455b-96a4-5393a227c06d
2025-04-04 15:15:43,072 - INFO - ================================================================================
2025-04-04 15:15:43,073 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-04 15:15:43,073 - 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-04 15:15:43,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.26': '0'}} with
2025-04-04 15:15:43,333 - INFO - Initial checks done. Running the testcase now
2025-04-04 15:15:43,333 - INFO -
2025-04-04 15:15:43,899 - DEBUG - Response for create_network : {'network': {'id': '4027858d-f65d-4d9c-a430-1d5420a45feb', 'name': 'ctest-vn-23270297', 'tenant_id': 'acfb79ab7796455b96a45393a227c06d', 'project_id': 'acfb79ab7796455b96a45393a227c06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-vn-23270297'], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:15:44,109 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dd871d0-43e6-4265-aa0b-3d6ae2eb0cf9', 'name': '', 'tenant_id': 'acfb79ab7796455b96a45393a227c06d', 'network_id': '4027858d-f65d-4d9c-a430-1d5420a45feb', 'ip_version': 4, 'cidr': '33.208.190.192/26', 'allocation_pools': [{'start': '33.208.190.194', 'end': '33.208.190.254'}], 'gateway_ip': '33.208.190.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.208.190.194', 'tags': [], 'project_id': 'acfb79ab7796455b96a45393a227c06d'}}
2025-04-04 15:15:44,137 - INFO - Created VN ctest-vn-23270297
2025-04-04 15:15:44,195 - DEBUG - VN ctest-vn-23270297 UUID is 4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:44,536 - DEBUG - Response for create_network : {'network': {'id': 'd404c76c-5e02-489c-8b1e-20819b7d0a22', 'name': 'ctest-vn-94960326', 'tenant_id': 'acfb79ab7796455b96a45393a227c06d', 'project_id': 'acfb79ab7796455b96a45393a227c06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-vn-94960326'], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:15:44,773 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f292f72d-8874-4997-841b-d3e5308727fa', 'name': '', 'tenant_id': 'acfb79ab7796455b96a45393a227c06d', 'network_id': 'd404c76c-5e02-489c-8b1e-20819b7d0a22', 'ip_version': 4, 'cidr': '197.115.118.0/26', 'allocation_pools': [{'start': '197.115.118.2', 'end': '197.115.118.62'}], 'gateway_ip': '197.115.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.115.118.2', 'tags': [], 'project_id': 'acfb79ab7796455b96a45393a227c06d'}}
2025-04-04 15:15:44,793 - INFO - Created VN ctest-vn-94960326
2025-04-04 15:15:44,847 - DEBUG - VN ctest-vn-94960326 UUID is d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:44,967 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-23270297, 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-64700274:ctest-vn-94960326, 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-04 15:15:45,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4027858d-f65d-4d9c-a430-1d5420a45feb', 'name': 'ctest-vn-23270297', 'tenant_id': 'acfb79ab7796455b96a45393a227c06d', 'project_id': 'acfb79ab7796455b96a45393a227c06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3dd871d0-43e6-4265-aa0b-3d6ae2eb0cf9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-vn-23270297'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-policy-allow-all-49122613']], 'subnet_ipam': [{'subnet_cidr': '33.208.190.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:15:45,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd404c76c-5e02-489c-8b1e-20819b7d0a22', 'name': 'ctest-vn-94960326', 'tenant_id': 'acfb79ab7796455b96a45393a227c06d', 'project_id': 'acfb79ab7796455b96a45393a227c06d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f292f72d-8874-4997-841b-d3e5308727fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-vn-94960326'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-policy-allow-all-49122613']], 'subnet_ipam': [{'subnet_cidr': '197.115.118.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-04 15:15:45,710 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-04 15:15:46,008 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-04 15:15:46,041 - DEBUG - Requesting: http://10.0.0.29:8082/domain/bfa57452-8050-4581-ac34-a31ff290556d
2025-04-04 15:15:46,056 - DEBUG - Requesting: http://10.0.0.29:8082/project/acfb79ab-7796-455b-96a4-5393a227c06d
2025-04-04 15:15:46,134 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:46,147 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:46,159 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a76ea512-0448-4d9a-9026-6d5809e4f17b
2025-04-04 15:15:46,169 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a76ea512-0448-4d9a-9026-6d5809e4f17b
2025-04-04 15:15:46,178 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3a38454a-541f-4a90-b068-b91a54b7e5e1
2025-04-04 15:15:46,187 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-04 15:15:46,187 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:46,199 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a76ea512-0448-4d9a-9026-6d5809e4f17b
2025-04-04 15:15:46,218 - INFO - Verified VN network id 9 for VN 4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:46,218 - INFO - Verifications in API Server for VN ctest-vn-23270297 passed
2025-04-04 15:15:46,218 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:46,230 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a76ea512-0448-4d9a-9026-6d5809e4f17b
2025-04-04 15:15:46,238 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/a76ea512-0448-4d9a-9026-6d5809e4f17b
2025-04-04 15:15:46,247 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3a38454a-541f-4a90-b068-b91a54b7e5e1
2025-04-04 15:15:46,262 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-23270297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64700274', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4622810387289296284', 'uuid-lslong': '11830988468264394731'}, 'enable': 'true', 'created': '2025-04-04T15:15:43', 'last-modified': '2025-04-04T15:15:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003612'}
2025-04-04 15:15:46,270 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-04 15:15:46,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23270297 passed
2025-04-04 15:15:46,270 - DEBUG - ====Verifying policy data for ctest-vn-23270297 in API_Server ======
2025-04-04 15:15:46,270 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-04 15:15:46,278 - DEBUG - Requesting: http://10.0.0.29:8082/domain/bfa57452-8050-4581-ac34-a31ff290556d
2025-04-04 15:15:46,295 - DEBUG - Requesting: http://10.0.0.29:8082/project/acfb79ab-7796-455b-96a4-5393a227c06d
2025-04-04 15:15:46,373 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/4027858d-f65d-4d9c-a430-1d5420a45feb
2025-04-04 15:15:46,385 - DEBUG - ==>Verifying data for policy with id: 4d1708bf-fee2-4615-a18a-10f957db50f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-policy-allow-all-49122613']
2025-04-04 15:15:46,385 - INFO - VN ctest-vn-23270297 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-04 15:15:46,386 - DEBUG - Verifying the vn in opserver
2025-04-04 15:15:46,386 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-23270297 virtual network link through opserver 10.0.0.29
2025-04-04 15:15:46,386 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-04-04 15:15:46,685 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-04-04 15:15:46,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-23270297', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-23270297?flat'}
2025-04-04 15:15:46,748 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-23270297 is found in opserver
2025-04-04 15:15:46,759 - DEBUG - Do not have enough data to verify VN in agent
2025-04-04 15:15:46,766 - DEBUG - VRF ids for VN ctest-vn-23270297: {}
2025-04-04 15:15:46,766 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-04 15:15:46,774 - DEBUG - Requesting: http://10.0.0.29:8082/domain/bfa57452-8050-4581-ac34-a31ff290556d
2025-04-04 15:15:46,788 - DEBUG - Requesting: http://10.0.0.29:8082/project/acfb79ab-7796-455b-96a4-5393a227c06d
2025-04-04 15:15:46,862 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:46,877 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:46,891 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9573d968-a336-4311-87c8-368401b6555f
2025-04-04 15:15:46,901 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9573d968-a336-4311-87c8-368401b6555f
2025-04-04 15:15:46,910 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/48afa1b3-cc3c-448e-ae2b-a9ecb492a6f3
2025-04-04 15:15:46,918 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-04 15:15:46,918 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:46,928 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9573d968-a336-4311-87c8-368401b6555f
2025-04-04 15:15:46,945 - INFO - Verified VN network id 10 for VN d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:46,945 - INFO - Verifications in API Server for VN ctest-vn-94960326 passed
2025-04-04 15:15:46,945 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:46,956 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9573d968-a336-4311-87c8-368401b6555f
2025-04-04 15:15:46,964 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9573d968-a336-4311-87c8-368401b6555f
2025-04-04 15:15:46,972 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/48afa1b3-cc3c-448e-ae2b-a9ecb492a6f3
2025-04-04 15:15:46,985 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-94960326', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64700274', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15277555104195168412', 'uuid-lslong': '10024485561604835874'}, 'enable': 'true', 'created': '2025-04-04T15:15:44', 'last-modified': '2025-04-04T15:15:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467001'}
2025-04-04 15:15:46,992 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-04 15:15:46,992 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94960326 passed
2025-04-04 15:15:46,993 - DEBUG - ====Verifying policy data for ctest-vn-94960326 in API_Server ======
2025-04-04 15:15:46,993 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-04-04 15:15:47,002 - DEBUG - Requesting: http://10.0.0.29:8082/domain/bfa57452-8050-4581-ac34-a31ff290556d
2025-04-04 15:15:47,017 - DEBUG - Requesting: http://10.0.0.29:8082/project/acfb79ab-7796-455b-96a4-5393a227c06d
2025-04-04 15:15:47,097 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/d404c76c-5e02-489c-8b1e-20819b7d0a22
2025-04-04 15:15:47,109 - DEBUG - ==>Verifying data for policy with id: 4d1708bf-fee2-4615-a18a-10f957db50f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-64700274', 'ctest-policy-allow-all-49122613']
2025-04-04 15:15:47,109 - INFO - VN ctest-vn-94960326 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-04 15:15:47,109 - DEBUG - Verifying the vn in opserver
2025-04-04 15:15:47,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-94960326 virtual network link through opserver 10.0.0.29
2025-04-04 15:15:47,109 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-04-04 15:15:47,121 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-94960326', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-94960326?flat'}
2025-04-04 15:15:47,121 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64700274:ctest-vn-94960326 is found in opserver
2025-04-04 15:15:47,133 - DEBUG - Do not have enough data to verify VN in agent
2025-04-04 15:15:47,139 - DEBUG - VRF ids for VN ctest-vn-94960326: {}
2025-04-04 15:15:47,196 - DEBUG - Services list from nova: [