2024-11-10 13:18:29,840 - INFO - Domain Default found not creating
2024-11-10 13:18:30,032 - INFO - Project ctest-TestBasicPolicy-29492991 not found, creating it
2024-11-10 13:18:30,541 - INFO - Created Project:ctest-TestBasicPolicy-29492991, ID : 49a30789-9adb-4dad-af78-4bf4215af2a4
2024-11-10 13:18:32,248 - INFO - ================================================================================
2024-11-10 13:18:32,249 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 13:18:32,249 - 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
2024-11-10 13:18:32,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.8': '0'}} with
2024-11-10 13:18:32,506 - INFO - Initial checks done. Running the testcase now
2024-11-10 13:18:32,507 - INFO -
2024-11-10 13:18:33,172 - DEBUG - Response for create_network : {'network': {'id': 'a6023cb1-9ea3-4432-be99-fca203a1393e', 'name': 'ctest-vn-74149452', 'tenant_id': '49a307899adb4dadaf784bf4215af2a4', 'project_id': '49a307899adb4dadaf784bf4215af2a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-vn-74149452'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:18:33,367 - DEBUG - Response for create_subnet : {'subnet': {'id': '26693455-8025-4406-a3f9-bbb0bdaf7ff8', 'name': '', 'tenant_id': '49a307899adb4dadaf784bf4215af2a4', 'network_id': 'a6023cb1-9ea3-4432-be99-fca203a1393e', 'ip_version': 4, 'cidr': '77.124.28.64/26', 'allocation_pools': [{'start': '77.124.28.66', 'end': '77.124.28.126'}], 'gateway_ip': '77.124.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.124.28.66', 'tags': [], 'project_id': '49a307899adb4dadaf784bf4215af2a4'}}
2024-11-10 13:18:33,388 - INFO - Created VN ctest-vn-74149452
2024-11-10 13:18:33,448 - DEBUG - VN ctest-vn-74149452 UUID is a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:33,837 - DEBUG - Response for create_network : {'network': {'id': '9fbb08bf-33a0-4f9c-a4af-e27ecd971e75', 'name': 'ctest-vn-23264572', 'tenant_id': '49a307899adb4dadaf784bf4215af2a4', 'project_id': '49a307899adb4dadaf784bf4215af2a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-vn-23264572'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:18:34,010 - DEBUG - Response for create_subnet : {'subnet': {'id': '2902fbbc-4e1a-4fa4-9fd7-1c285df31229', 'name': '', 'tenant_id': '49a307899adb4dadaf784bf4215af2a4', 'network_id': '9fbb08bf-33a0-4f9c-a4af-e27ecd971e75', 'ip_version': 4, 'cidr': '187.159.137.64/26', 'allocation_pools': [{'start': '187.159.137.66', 'end': '187.159.137.126'}], 'gateway_ip': '187.159.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.159.137.66', 'tags': [], 'project_id': '49a307899adb4dadaf784bf4215af2a4'}}
2024-11-10 13:18:34,033 - INFO - Created VN ctest-vn-23264572
2024-11-10 13:18:34,092 - DEBUG - VN ctest-vn-23264572 UUID is 9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:34,232 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-74149452, 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-29492991:ctest-vn-23264572, 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]
2024-11-10 13:18:34,576 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6023cb1-9ea3-4432-be99-fca203a1393e', 'name': 'ctest-vn-74149452', 'tenant_id': '49a307899adb4dadaf784bf4215af2a4', 'project_id': '49a307899adb4dadaf784bf4215af2a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26693455-8025-4406-a3f9-bbb0bdaf7ff8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-vn-74149452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-policy-allow-all-25145675']], 'subnet_ipam': [{'subnet_cidr': '77.124.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:18:34,839 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9fbb08bf-33a0-4f9c-a4af-e27ecd971e75', 'name': 'ctest-vn-23264572', 'tenant_id': '49a307899adb4dadaf784bf4215af2a4', 'project_id': '49a307899adb4dadaf784bf4215af2a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2902fbbc-4e1a-4fa4-9fd7-1c285df31229'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-vn-23264572'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-policy-allow-all-25145675']], 'subnet_ipam': [{'subnet_cidr': '187.159.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:18:35,044 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-10 13:18:35,366 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-10 13:18:35,405 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7ce3b20-6d41-4424-8fd1-d9468be813f0
2024-11-10 13:18:35,422 - DEBUG - Requesting: http://10.0.0.33:8082/project/49a30789-9adb-4dad-af78-4bf4215af2a4
2024-11-10 13:18:35,521 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:35,538 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:35,553 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9c0f57f6-499f-4846-9c3b-ddcef9c6479c
2024-11-10 13:18:35,564 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9c0f57f6-499f-4846-9c3b-ddcef9c6479c
2024-11-10 13:18:35,574 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e996ca55-da22-4e0b-b098-05540ec4febf
2024-11-10 13:18:35,586 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 13:18:35,587 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:35,603 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9c0f57f6-499f-4846-9c3b-ddcef9c6479c
2024-11-10 13:18:35,629 - INFO - Verified VN network id 8 for VN a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:35,629 - INFO - Verifications in API Server for VN ctest-vn-74149452 passed
2024-11-10 13:18:35,629 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:35,646 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9c0f57f6-499f-4846-9c3b-ddcef9c6479c
2024-11-10 13:18:35,656 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9c0f57f6-499f-4846-9c3b-ddcef9c6479c
2024-11-10 13:18:35,667 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e996ca55-da22-4e0b-b098-05540ec4febf
2024-11-10 13:18:35,683 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-74149452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29492991', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11962190293817836594', 'uuid-lslong': '13734286311418837310'}, 'enable': 'true', 'created': '2024-11-10T13:18:33', 'last-modified': '2024-11-10T13:18:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.139133'}
2024-11-10 13:18:35,691 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 13:18:35,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74149452 passed
2024-11-10 13:18:35,692 - DEBUG - ====Verifying policy data for ctest-vn-74149452 in API_Server ======
2024-11-10 13:18:35,692 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-10 13:18:35,700 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7ce3b20-6d41-4424-8fd1-d9468be813f0
2024-11-10 13:18:35,716 - DEBUG - Requesting: http://10.0.0.33:8082/project/49a30789-9adb-4dad-af78-4bf4215af2a4
2024-11-10 13:18:35,818 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a6023cb1-9ea3-4432-be99-fca203a1393e
2024-11-10 13:18:35,837 - DEBUG - ==>Verifying data for policy with id: 716a3d95-4509-4bd8-9f1f-48c5dc24481e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-policy-allow-all-25145675']
2024-11-10 13:18:35,837 - INFO - VN ctest-vn-74149452 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 13:18:35,837 - DEBUG - Verifying the vn in opserver
2024-11-10 13:18:35,837 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-74149452 virtual network link through opserver 10.0.0.33
2024-11-10 13:18:35,837 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-11-10 13:18:36,148 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-11-10 13:18:36,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-74149452', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-74149452?flat'}
2024-11-10 13:18:36,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-74149452 is found in opserver
2024-11-10 13:18:36,233 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 13:18:36,239 - DEBUG - VRF ids for VN ctest-vn-74149452: {}
2024-11-10 13:18:36,239 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-10 13:18:36,246 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7ce3b20-6d41-4424-8fd1-d9468be813f0
2024-11-10 13:18:36,264 - DEBUG - Requesting: http://10.0.0.33:8082/project/49a30789-9adb-4dad-af78-4bf4215af2a4
2024-11-10 13:18:36,354 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:36,372 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:36,389 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5af617e7-409e-4a0c-b864-664986660f5d
2024-11-10 13:18:36,401 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5af617e7-409e-4a0c-b864-664986660f5d
2024-11-10 13:18:36,412 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ebd2d244-9f2a-4d93-8cc1-f6bfd4e7365c
2024-11-10 13:18:36,424 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 13:18:36,424 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:36,441 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5af617e7-409e-4a0c-b864-664986660f5d
2024-11-10 13:18:36,465 - INFO - Verified VN network id 9 for VN 9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:36,465 - INFO - Verifications in API Server for VN ctest-vn-23264572 passed
2024-11-10 13:18:36,465 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:36,481 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5af617e7-409e-4a0c-b864-664986660f5d
2024-11-10 13:18:36,492 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5af617e7-409e-4a0c-b864-664986660f5d
2024-11-10 13:18:36,503 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ebd2d244-9f2a-4d93-8cc1-f6bfd4e7365c
2024-11-10 13:18:36,518 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-23264572', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29492991', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11509802889973354396', 'uuid-lslong': '11866952577387535989'}, 'enable': 'true', 'created': '2024-11-10T13:18:33', 'last-modified': '2024-11-10T13:18:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.709168'}
2024-11-10 13:18:36,525 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 13:18:36,525 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23264572 passed
2024-11-10 13:18:36,525 - DEBUG - ====Verifying policy data for ctest-vn-23264572 in API_Server ======
2024-11-10 13:18:36,526 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-11-10 13:18:36,533 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b7ce3b20-6d41-4424-8fd1-d9468be813f0
2024-11-10 13:18:36,548 - DEBUG - Requesting: http://10.0.0.33:8082/project/49a30789-9adb-4dad-af78-4bf4215af2a4
2024-11-10 13:18:36,636 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9fbb08bf-33a0-4f9c-a4af-e27ecd971e75
2024-11-10 13:18:36,651 - DEBUG - ==>Verifying data for policy with id: 716a3d95-4509-4bd8-9f1f-48c5dc24481e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29492991', 'ctest-policy-allow-all-25145675']
2024-11-10 13:18:36,651 - INFO - VN ctest-vn-23264572 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 13:18:36,651 - DEBUG - Verifying the vn in opserver
2024-11-10 13:18:36,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-23264572 virtual network link through opserver 10.0.0.33
2024-11-10 13:18:36,652 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-11-10 13:18:36,665 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-23264572', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-23264572?flat'}
2024-11-10 13:18:36,665 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29492991:ctest-vn-23264572 is found in opserver
2024-11-10 13:18:36,677 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 13:18:36,683 - DEBUG - VRF ids for VN ctest-vn-23264572: {}
2024-11-10 13:18:36,752 - DEBUG - Services list from nova: [