2025-01-15 19:20:03,484 - INFO - Domain Default found not creating
2025-01-15 19:20:03,626 - INFO - Project ctest-TestBasicPolicy-19472049 not found, creating it
2025-01-15 19:20:04,141 - INFO - Created Project:ctest-TestBasicPolicy-19472049, ID : f261d910-0b93-46fc-b4a9-266c5e15f79e
2025-01-15 19:20:05,521 - INFO - ================================================================================
2025-01-15 19:20:05,521 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 19:20:05,521 - 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-01-15 19:20:05,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-01-15 19:20:05,775 - INFO - Initial checks done. Running the testcase now
2025-01-15 19:20:05,775 - INFO -
2025-01-15 19:20:06,307 - DEBUG - Response for create_network : {'network': {'id': 'a378292b-1726-4b89-b1e9-ee4bdff37d52', 'name': 'ctest-vn-47556843', 'tenant_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'project_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-vn-47556843'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:20:06,456 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fa3090e-3ab8-49da-9fcb-3e8ba035334e', 'name': '', 'tenant_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'network_id': 'a378292b-1726-4b89-b1e9-ee4bdff37d52', 'ip_version': 4, 'cidr': '42.241.51.0/26', 'allocation_pools': [{'start': '42.241.51.2', 'end': '42.241.51.62'}], 'gateway_ip': '42.241.51.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.241.51.2', 'tags': [], 'project_id': 'f261d9100b9346fcb4a9266c5e15f79e'}}
2025-01-15 19:20:06,475 - INFO - Created VN ctest-vn-47556843
2025-01-15 19:20:06,530 - DEBUG - VN ctest-vn-47556843 UUID is a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:06,848 - DEBUG - Response for create_network : {'network': {'id': 'c48f9c1d-1848-43e6-964a-95872314aa83', 'name': 'ctest-vn-41937514', 'tenant_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'project_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-vn-41937514'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:20:07,035 - DEBUG - Response for create_subnet : {'subnet': {'id': '57db44cc-ff56-49f7-ae43-ca8040b3bad5', 'name': '', 'tenant_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'network_id': 'c48f9c1d-1848-43e6-964a-95872314aa83', 'ip_version': 4, 'cidr': '163.217.140.192/26', 'allocation_pools': [{'start': '163.217.140.194', 'end': '163.217.140.254'}], 'gateway_ip': '163.217.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.217.140.194', 'tags': [], 'project_id': 'f261d9100b9346fcb4a9266c5e15f79e'}}
2025-01-15 19:20:07,052 - INFO - Created VN ctest-vn-41937514
2025-01-15 19:20:07,110 - DEBUG - VN ctest-vn-41937514 UUID is c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:07,218 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-47556843, 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-19472049:ctest-vn-41937514, 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-01-15 19:20:07,539 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a378292b-1726-4b89-b1e9-ee4bdff37d52', 'name': 'ctest-vn-47556843', 'tenant_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'project_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fa3090e-3ab8-49da-9fcb-3e8ba035334e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-vn-47556843'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-policy-allow-all-00542527']], 'subnet_ipam': [{'subnet_cidr': '42.241.51.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:20:07,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c48f9c1d-1848-43e6-964a-95872314aa83', 'name': 'ctest-vn-41937514', 'tenant_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'project_id': 'f261d9100b9346fcb4a9266c5e15f79e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57db44cc-ff56-49f7-ae43-ca8040b3bad5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-vn-41937514'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-policy-allow-all-00542527']], 'subnet_ipam': [{'subnet_cidr': '163.217.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 19:20:07,974 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 19:20:08,292 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 19:20:08,324 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19b3ec52-8005-49f9-88c9-fbd698d99db2
2025-01-15 19:20:08,335 - DEBUG - Requesting: http://10.0.0.22:8082/project/f261d910-0b93-46fc-b4a9-266c5e15f79e
2025-01-15 19:20:08,404 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:08,416 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:08,426 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/827ce337-6a0a-45fa-8b9d-c870cc7d452c
2025-01-15 19:20:08,433 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/827ce337-6a0a-45fa-8b9d-c870cc7d452c
2025-01-15 19:20:08,440 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/af837f35-fbc5-4778-bf80-57f7d8754cce
2025-01-15 19:20:08,446 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 19:20:08,446 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:08,455 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/827ce337-6a0a-45fa-8b9d-c870cc7d452c
2025-01-15 19:20:08,468 - INFO - Verified VN network id 8 for VN a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:08,468 - INFO - Verifications in API Server for VN ctest-vn-47556843 passed
2025-01-15 19:20:08,468 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:08,477 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/827ce337-6a0a-45fa-8b9d-c870cc7d452c
2025-01-15 19:20:08,484 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/827ce337-6a0a-45fa-8b9d-c870cc7d452c
2025-01-15 19:20:08,491 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/af837f35-fbc5-4778-bf80-57f7d8754cce
2025-01-15 19:20:08,503 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-47556843', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19472049', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11779210090436250505', 'uuid-lslong': '12820039823934061906'}, 'enable': 'true', 'created': '2025-01-15T19:20:06', 'last-modified': '2025-01-15T19:20:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993332'}
2025-01-15 19:20:08,509 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 19:20:08,510 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47556843 passed
2025-01-15 19:20:08,510 - DEBUG - ====Verifying policy data for ctest-vn-47556843 in API_Server ======
2025-01-15 19:20:08,510 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 19:20:08,515 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19b3ec52-8005-49f9-88c9-fbd698d99db2
2025-01-15 19:20:08,525 - DEBUG - Requesting: http://10.0.0.22:8082/project/f261d910-0b93-46fc-b4a9-266c5e15f79e
2025-01-15 19:20:08,601 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a378292b-1726-4b89-b1e9-ee4bdff37d52
2025-01-15 19:20:08,611 - DEBUG - ==>Verifying data for policy with id: cc388060-19bb-4abf-8305-03b33dbf838e, fqn: ['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-policy-allow-all-00542527']
2025-01-15 19:20:08,611 - INFO - VN ctest-vn-47556843 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 19:20:08,611 - DEBUG - Verifying the vn in opserver
2025-01-15 19:20:08,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-47556843 virtual network link through opserver 10.0.0.22
2025-01-15 19:20:08,612 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-15 19:20:08,900 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-15 19:20:08,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-47556843', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-47556843?flat'}
2025-01-15 19:20:08,949 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-47556843 is found in opserver
2025-01-15 19:20:08,961 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 19:20:08,966 - DEBUG - VRF ids for VN ctest-vn-47556843: {}
2025-01-15 19:20:08,966 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 19:20:08,971 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19b3ec52-8005-49f9-88c9-fbd698d99db2
2025-01-15 19:20:08,983 - DEBUG - Requesting: http://10.0.0.22:8082/project/f261d910-0b93-46fc-b4a9-266c5e15f79e
2025-01-15 19:20:09,055 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:09,068 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:09,078 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f34e2945-5293-475a-b984-246193162319
2025-01-15 19:20:09,086 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f34e2945-5293-475a-b984-246193162319
2025-01-15 19:20:09,093 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fa80085a-a590-4abb-8367-494a2fbab455
2025-01-15 19:20:09,100 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 19:20:09,100 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:09,112 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f34e2945-5293-475a-b984-246193162319
2025-01-15 19:20:09,131 - INFO - Verified VN network id 9 for VN c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:09,131 - INFO - Verifications in API Server for VN ctest-vn-41937514 passed
2025-01-15 19:20:09,131 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:09,144 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f34e2945-5293-475a-b984-246193162319
2025-01-15 19:20:09,153 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f34e2945-5293-475a-b984-246193162319
2025-01-15 19:20:09,161 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fa80085a-a590-4abb-8367-494a2fbab455
2025-01-15 19:20:09,174 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-41937514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19472049', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14163711001878873062', 'uuid-lslong': '10829632661607459459'}, 'enable': 'true', 'created': '2025-01-15T19:20:06', 'last-modified': '2025-01-15T19:20:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400354'}
2025-01-15 19:20:09,180 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 19:20:09,180 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41937514 passed
2025-01-15 19:20:09,180 - DEBUG - ====Verifying policy data for ctest-vn-41937514 in API_Server ======
2025-01-15 19:20:09,180 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 19:20:09,186 - DEBUG - Requesting: http://10.0.0.22:8082/domain/19b3ec52-8005-49f9-88c9-fbd698d99db2
2025-01-15 19:20:09,200 - DEBUG - Requesting: http://10.0.0.22:8082/project/f261d910-0b93-46fc-b4a9-266c5e15f79e
2025-01-15 19:20:09,274 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c48f9c1d-1848-43e6-964a-95872314aa83
2025-01-15 19:20:09,284 - DEBUG - ==>Verifying data for policy with id: cc388060-19bb-4abf-8305-03b33dbf838e, fqn: ['default-domain', 'ctest-TestBasicPolicy-19472049', 'ctest-policy-allow-all-00542527']
2025-01-15 19:20:09,284 - INFO - VN ctest-vn-41937514 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 19:20:09,284 - DEBUG - Verifying the vn in opserver
2025-01-15 19:20:09,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-41937514 virtual network link through opserver 10.0.0.22
2025-01-15 19:20:09,284 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-15 19:20:09,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-41937514', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-41937514?flat'}
2025-01-15 19:20:09,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19472049:ctest-vn-41937514 is found in opserver
2025-01-15 19:20:09,306 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 19:20:09,313 - DEBUG - VRF ids for VN ctest-vn-41937514: {}
2025-01-15 19:20:09,372 - DEBUG - Services list from nova: [