2025-04-14 19:48:32,394 - INFO - Domain Default found not creating
2025-04-14 19:48:32,537 - INFO - Project ctest-TestBasicPolicy-96081801 not found, creating it
2025-04-14 19:48:33,000 - INFO - Created Project:ctest-TestBasicPolicy-96081801, ID : 438e4bdd-d8c5-417a-9972-b251c294ecde
2025-04-14 19:48:34,430 - INFO - ================================================================================
2025-04-14 19:48:34,430 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 19:48:34,430 - 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-14 19:48:34,686 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-04-14 19:48:34,686 - INFO - Initial checks done. Running the testcase now
2025-04-14 19:48:34,686 - INFO -
2025-04-14 19:48:35,221 - DEBUG - Response for create_network : {'network': {'id': '3bdf139f-4207-451c-aa18-441a61407933', 'name': 'ctest-vn-85333553', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-85333553'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:48:35,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbb94243-8431-4ec1-8fc7-f533254ab692', 'name': '', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'network_id': '3bdf139f-4207-451c-aa18-441a61407933', 'ip_version': 4, 'cidr': '57.193.163.128/26', 'allocation_pools': [{'start': '57.193.163.130', 'end': '57.193.163.190'}], 'gateway_ip': '57.193.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.193.163.130', 'tags': [], 'project_id': '438e4bddd8c5417a9972b251c294ecde'}}
2025-04-14 19:48:35,445 - INFO - Created VN ctest-vn-85333553
2025-04-14 19:48:35,500 - DEBUG - VN ctest-vn-85333553 UUID is 3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:35,788 - DEBUG - Response for create_network : {'network': {'id': 'e285d946-d2be-4b53-b8f7-8349838c2ef9', 'name': 'ctest-vn-01980699', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-01980699'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:48:35,944 - DEBUG - Response for create_subnet : {'subnet': {'id': '75270784-94e7-4777-b4b3-0e5682fc173d', 'name': '', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'network_id': 'e285d946-d2be-4b53-b8f7-8349838c2ef9', 'ip_version': 4, 'cidr': '148.40.220.64/26', 'allocation_pools': [{'start': '148.40.220.66', 'end': '148.40.220.126'}], 'gateway_ip': '148.40.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.40.220.66', 'tags': [], 'project_id': '438e4bddd8c5417a9972b251c294ecde'}}
2025-04-14 19:48:35,961 - INFO - Created VN ctest-vn-01980699
2025-04-14 19:48:36,012 - DEBUG - VN ctest-vn-01980699 UUID is e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:36,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553, 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-96081801:ctest-vn-01980699, 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-14 19:48:36,454 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bdf139f-4207-451c-aa18-441a61407933', 'name': 'ctest-vn-85333553', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fbb94243-8431-4ec1-8fc7-f533254ab692'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-85333553'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240']], 'subnet_ipam': [{'subnet_cidr': '57.193.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:48:36,654 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e285d946-d2be-4b53-b8f7-8349838c2ef9', 'name': 'ctest-vn-01980699', 'tenant_id': '438e4bddd8c5417a9972b251c294ecde', 'project_id': '438e4bddd8c5417a9972b251c294ecde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75270784-94e7-4777-b4b3-0e5682fc173d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-vn-01980699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240']], 'subnet_ipam': [{'subnet_cidr': '148.40.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 19:48:36,828 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 19:48:37,124 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 19:48:37,152 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de
2025-04-14 19:48:37,165 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde
2025-04-14 19:48:37,236 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:37,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:37,260 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb
2025-04-14 19:48:37,269 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb
2025-04-14 19:48:37,277 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25fb238b-d496-4f6a-8b19-d5978170323c
2025-04-14 19:48:37,283 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 19:48:37,283 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:37,293 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb
2025-04-14 19:48:37,308 - INFO - Verified VN network id 8 for VN 3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:37,308 - INFO - Verifications in API Server for VN ctest-vn-85333553 passed
2025-04-14 19:48:37,308 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:37,317 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb
2025-04-14 19:48:37,325 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/56bbb7c5-2b62-4f30-ba89-79e4d5dec7cb
2025-04-14 19:48:37,332 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/25fb238b-d496-4f6a-8b19-d5978170323c
2025-04-14 19:48:37,344 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96081801', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4314188542772725020', 'uuid-lslong': '12256621265980258611'}, 'enable': 'true', 'created': '2025-04-14T19:48:35', 'last-modified': '2025-04-14T19:48:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907310'}
2025-04-14 19:48:37,351 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 19:48:37,351 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85333553 passed
2025-04-14 19:48:37,351 - DEBUG - ====Verifying policy data for ctest-vn-85333553 in API_Server ======
2025-04-14 19:48:37,351 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 19:48:37,357 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de
2025-04-14 19:48:37,369 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde
2025-04-14 19:48:37,443 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3bdf139f-4207-451c-aa18-441a61407933
2025-04-14 19:48:37,453 - DEBUG - ==>Verifying data for policy with id: d5a4ad68-8a68-4990-9fde-8184d0dbfbaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240']
2025-04-14 19:48:37,453 - INFO - VN ctest-vn-85333553 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 19:48:37,453 - DEBUG - Verifying the vn in opserver
2025-04-14 19:48:37,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553 virtual network link through opserver 10.0.0.50
2025-04-14 19:48:37,453 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-14 19:48:37,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-14 19:48:37,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553?flat'}
2025-04-14 19:48:37,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-85333553 is found in opserver
2025-04-14 19:48:37,821 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 19:48:37,830 - DEBUG - VRF ids for VN ctest-vn-85333553: {}
2025-04-14 19:48:37,830 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 19:48:37,838 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de
2025-04-14 19:48:37,852 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde
2025-04-14 19:48:37,937 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:37,955 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:37,966 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009
2025-04-14 19:48:37,983 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009
2025-04-14 19:48:37,992 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0b0ed914-df2d-4487-98f9-7a72e7b3eb69
2025-04-14 19:48:38,001 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 19:48:38,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:38,012 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009
2025-04-14 19:48:38,028 - INFO - Verified VN network id 9 for VN e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:38,028 - INFO - Verifications in API Server for VN ctest-vn-01980699 passed
2025-04-14 19:48:38,028 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:38,037 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009
2025-04-14 19:48:38,044 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f8b42cd7-a13e-4a97-be8d-7f347f872009
2025-04-14 19:48:38,051 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0b0ed914-df2d-4487-98f9-7a72e7b3eb69
2025-04-14 19:48:38,063 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96081801', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16322691322680855379', 'uuid-lslong': '13328265973989125881'}, 'enable': 'true', 'created': '2025-04-14T19:48:35', 'last-modified': '2025-04-14T19:48:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433304'}
2025-04-14 19:48:38,070 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 19:48:38,070 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01980699 passed
2025-04-14 19:48:38,070 - DEBUG - ====Verifying policy data for ctest-vn-01980699 in API_Server ======
2025-04-14 19:48:38,070 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-14 19:48:38,077 - DEBUG - Requesting: http://10.0.0.50:8082/domain/968979cf-b8fd-44d5-8604-c0aa9668f7de
2025-04-14 19:48:38,088 - DEBUG - Requesting: http://10.0.0.50:8082/project/438e4bdd-d8c5-417a-9972-b251c294ecde
2025-04-14 19:48:38,170 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e285d946-d2be-4b53-b8f7-8349838c2ef9
2025-04-14 19:48:38,181 - DEBUG - ==>Verifying data for policy with id: d5a4ad68-8a68-4990-9fde-8184d0dbfbaa, fqn: ['default-domain', 'ctest-TestBasicPolicy-96081801', 'ctest-policy-allow-all-24400240']
2025-04-14 19:48:38,181 - INFO - VN ctest-vn-01980699 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 19:48:38,181 - DEBUG - Verifying the vn in opserver
2025-04-14 19:48:38,181 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699 virtual network link through opserver 10.0.0.50
2025-04-14 19:48:38,181 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-14 19:48:38,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699?flat'}
2025-04-14 19:48:38,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96081801:ctest-vn-01980699 is found in opserver
2025-04-14 19:48:38,205 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 19:48:38,209 - DEBUG - VRF ids for VN ctest-vn-01980699: {}
2025-04-14 19:48:38,265 - DEBUG - Services list from nova: [