2025-04-30 11:57:03,225 - INFO - Domain Default found not creating
2025-04-30 11:57:03,364 - INFO - Project ctest-TestBasicPolicy-95895791 not found, creating it
2025-04-30 11:57:03,801 - INFO - Created Project:ctest-TestBasicPolicy-95895791, ID : 9d335118-c92c-4bfd-b87d-636afae29486
2025-04-30 11:57:05,340 - INFO - ================================================================================
2025-04-30 11:57:05,340 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-30 11:57:05,340 - 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-30 11:57:05,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-04-30 11:57:05,597 - INFO - Initial checks done. Running the testcase now
2025-04-30 11:57:05,597 - INFO -
2025-04-30 11:57:06,164 - DEBUG - Response for create_network : {'network': {'id': '0724a42a-9803-419c-8ff4-a5082311d41a', 'name': 'ctest-vn-16222853', 'tenant_id': '9d335118c92c4bfdb87d636afae29486', 'project_id': '9d335118c92c4bfdb87d636afae29486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-vn-16222853'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:57:06,370 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c25361c5-64c3-4297-943b-ab8192383b27', 'name': '', 'tenant_id': '9d335118c92c4bfdb87d636afae29486', 'network_id': '0724a42a-9803-419c-8ff4-a5082311d41a', 'ip_version': 4, 'cidr': '197.210.39.128/26', 'allocation_pools': [{'start': '197.210.39.130', 'end': '197.210.39.190'}], 'gateway_ip': '197.210.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.210.39.130', 'tags': [], 'project_id': '9d335118c92c4bfdb87d636afae29486'}}
2025-04-30 11:57:06,390 - INFO - Created VN ctest-vn-16222853
2025-04-30 11:57:06,444 - DEBUG - VN ctest-vn-16222853 UUID is 0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:06,775 - DEBUG - Response for create_network : {'network': {'id': '24a5bf3c-d198-49d1-8b92-1ae6159c9db0', 'name': 'ctest-vn-13889767', 'tenant_id': '9d335118c92c4bfdb87d636afae29486', 'project_id': '9d335118c92c4bfdb87d636afae29486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-vn-13889767'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:57:06,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b04f4b7-7d58-4599-bb88-2d06a02e5ce0', 'name': '', 'tenant_id': '9d335118c92c4bfdb87d636afae29486', 'network_id': '24a5bf3c-d198-49d1-8b92-1ae6159c9db0', 'ip_version': 4, 'cidr': '128.104.16.128/26', 'allocation_pools': [{'start': '128.104.16.130', 'end': '128.104.16.190'}], 'gateway_ip': '128.104.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.104.16.130', 'tags': [], 'project_id': '9d335118c92c4bfdb87d636afae29486'}}
2025-04-30 11:57:06,987 - INFO - Created VN ctest-vn-13889767
2025-04-30 11:57:07,044 - DEBUG - VN ctest-vn-13889767 UUID is 24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:07,196 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-16222853, 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-95895791:ctest-vn-13889767, 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-30 11:57:07,525 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0724a42a-9803-419c-8ff4-a5082311d41a', 'name': 'ctest-vn-16222853', 'tenant_id': '9d335118c92c4bfdb87d636afae29486', 'project_id': '9d335118c92c4bfdb87d636afae29486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c25361c5-64c3-4297-943b-ab8192383b27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-vn-16222853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-policy-allow-all-19036290']], 'subnet_ipam': [{'subnet_cidr': '197.210.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:57:07,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24a5bf3c-d198-49d1-8b92-1ae6159c9db0', 'name': 'ctest-vn-13889767', 'tenant_id': '9d335118c92c4bfdb87d636afae29486', 'project_id': '9d335118c92c4bfdb87d636afae29486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b04f4b7-7d58-4599-bb88-2d06a02e5ce0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-vn-13889767'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-policy-allow-all-19036290']], 'subnet_ipam': [{'subnet_cidr': '128.104.16.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 11:57:07,960 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-30 11:57:08,295 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-30 11:57:08,325 - DEBUG - Requesting: http://10.0.0.254:8082/domain/419796e4-0dd9-41e4-84c0-d1767779147a
2025-04-30 11:57:08,343 - DEBUG - Requesting: http://10.0.0.254:8082/project/9d335118-c92c-4bfd-b87d-636afae29486
2025-04-30 11:57:08,421 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:08,432 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:08,441 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d2b7a270-cc0a-4a29-b387-c92980157c00
2025-04-30 11:57:08,447 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d2b7a270-cc0a-4a29-b387-c92980157c00
2025-04-30 11:57:08,454 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5092b2b5-a712-4246-bf2e-5565fea1544b
2025-04-30 11:57:08,459 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 11:57:08,459 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:08,467 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d2b7a270-cc0a-4a29-b387-c92980157c00
2025-04-30 11:57:08,480 - INFO - Verified VN network id 7 for VN 0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:08,480 - INFO - Verifications in API Server for VN ctest-vn-16222853 passed
2025-04-30 11:57:08,480 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:08,489 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d2b7a270-cc0a-4a29-b387-c92980157c00
2025-04-30 11:57:08,497 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d2b7a270-cc0a-4a29-b387-c92980157c00
2025-04-30 11:57:08,504 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5092b2b5-a712-4246-bf2e-5565fea1544b
2025-04-30 11:57:08,517 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-16222853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95895791', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '514716760273011100', 'uuid-lslong': '10373097296107787290'}, 'enable': 'true', 'created': '2025-04-30T11:57:06', 'last-modified': '2025-04-30T11:57:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013953'}
2025-04-30 11:57:08,524 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 11:57:08,524 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16222853 passed
2025-04-30 11:57:08,524 - DEBUG - ====Verifying policy data for ctest-vn-16222853 in API_Server ======
2025-04-30 11:57:08,524 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-30 11:57:08,529 - DEBUG - Requesting: http://10.0.0.254:8082/domain/419796e4-0dd9-41e4-84c0-d1767779147a
2025-04-30 11:57:08,540 - DEBUG - Requesting: http://10.0.0.254:8082/project/9d335118-c92c-4bfd-b87d-636afae29486
2025-04-30 11:57:08,617 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0724a42a-9803-419c-8ff4-a5082311d41a
2025-04-30 11:57:08,626 - DEBUG - ==>Verifying data for policy with id: ac117996-6309-4b3a-be90-e4fcc3f81b75, fqn: ['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-policy-allow-all-19036290']
2025-04-30 11:57:08,626 - INFO - VN ctest-vn-16222853 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 11:57:08,626 - DEBUG - Verifying the vn in opserver
2025-04-30 11:57:08,626 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-16222853 virtual network link through opserver 10.0.0.254
2025-04-30 11:57:08,626 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-30 11:57:08,957 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-30 11:57:09,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-16222853', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-16222853?flat'}
2025-04-30 11:57:09,016 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-16222853 is found in opserver
2025-04-30 11:57:09,025 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 11:57:09,030 - DEBUG - VRF ids for VN ctest-vn-16222853: {}
2025-04-30 11:57:09,030 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-30 11:57:09,035 - DEBUG - Requesting: http://10.0.0.254:8082/domain/419796e4-0dd9-41e4-84c0-d1767779147a
2025-04-30 11:57:09,045 - DEBUG - Requesting: http://10.0.0.254:8082/project/9d335118-c92c-4bfd-b87d-636afae29486
2025-04-30 11:57:09,113 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:09,124 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:09,134 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7b856afa-4379-4d8d-844c-5d2527142837
2025-04-30 11:57:09,140 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7b856afa-4379-4d8d-844c-5d2527142837
2025-04-30 11:57:09,147 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c9235734-05d7-4098-a6ca-d0006fc58262
2025-04-30 11:57:09,154 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 11:57:09,154 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:09,163 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7b856afa-4379-4d8d-844c-5d2527142837
2025-04-30 11:57:09,180 - INFO - Verified VN network id 8 for VN 24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:09,180 - INFO - Verifications in API Server for VN ctest-vn-13889767 passed
2025-04-30 11:57:09,180 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:09,190 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7b856afa-4379-4d8d-844c-5d2527142837
2025-04-30 11:57:09,197 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7b856afa-4379-4d8d-844c-5d2527142837
2025-04-30 11:57:09,203 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c9235734-05d7-4098-a6ca-d0006fc58262
2025-04-30 11:57:09,214 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-13889767', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95895791', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2640727024458025425', 'uuid-lslong': '10057130493379124656'}, 'enable': 'true', 'created': '2025-04-30T11:57:06', 'last-modified': '2025-04-30T11:57:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470625'}
2025-04-30 11:57:09,220 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 11:57:09,220 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13889767 passed
2025-04-30 11:57:09,220 - DEBUG - ====Verifying policy data for ctest-vn-13889767 in API_Server ======
2025-04-30 11:57:09,221 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-30 11:57:09,227 - DEBUG - Requesting: http://10.0.0.254:8082/domain/419796e4-0dd9-41e4-84c0-d1767779147a
2025-04-30 11:57:09,237 - DEBUG - Requesting: http://10.0.0.254:8082/project/9d335118-c92c-4bfd-b87d-636afae29486
2025-04-30 11:57:09,312 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/24a5bf3c-d198-49d1-8b92-1ae6159c9db0
2025-04-30 11:57:09,322 - DEBUG - ==>Verifying data for policy with id: ac117996-6309-4b3a-be90-e4fcc3f81b75, fqn: ['default-domain', 'ctest-TestBasicPolicy-95895791', 'ctest-policy-allow-all-19036290']
2025-04-30 11:57:09,322 - INFO - VN ctest-vn-13889767 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 11:57:09,322 - DEBUG - Verifying the vn in opserver
2025-04-30 11:57:09,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-13889767 virtual network link through opserver 10.0.0.254
2025-04-30 11:57:09,322 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-30 11:57:09,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-13889767', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-13889767?flat'}
2025-04-30 11:57:09,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95895791:ctest-vn-13889767 is found in opserver
2025-04-30 11:57:09,342 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 11:57:09,346 - DEBUG - VRF ids for VN ctest-vn-13889767: {}
2025-04-30 11:57:09,401 - DEBUG - Services list from nova: [