2024-11-10 13:32:30,055 - INFO - Domain Default found not creating
2024-11-10 13:32:30,258 - INFO - Project ctest-TestBasicPolicy-10097290 not found, creating it
2024-11-10 13:32:30,807 - INFO - Created Project:ctest-TestBasicPolicy-10097290, ID : b1c148d1-0552-43e3-b34d-f02f461cd83a
2024-11-10 13:32:32,379 - INFO - ================================================================================
2024-11-10 13:32:32,380 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 13:32:32,380 - 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:32:32,649 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.5': '0'}} with
2024-11-10 13:32:32,649 - INFO - Initial checks done. Running the testcase now
2024-11-10 13:32:32,649 - INFO -
2024-11-10 13:32:33,260 - DEBUG - Response for create_network : {'network': {'id': 'ffadedb3-a31e-477c-949f-8f0c0e042f44', 'name': 'ctest-vn-10099854', 'tenant_id': 'b1c148d1055243e3b34df02f461cd83a', 'project_id': 'b1c148d1055243e3b34df02f461cd83a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-vn-10099854'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:32:33,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '6108c477-14ea-4004-b275-4997cba9ed9a', 'name': '', 'tenant_id': 'b1c148d1055243e3b34df02f461cd83a', 'network_id': 'ffadedb3-a31e-477c-949f-8f0c0e042f44', 'ip_version': 4, 'cidr': '175.176.50.128/26', 'allocation_pools': [{'start': '175.176.50.130', 'end': '175.176.50.190'}], 'gateway_ip': '175.176.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.176.50.130', 'tags': [], 'project_id': 'b1c148d1055243e3b34df02f461cd83a'}}
2024-11-10 13:32:33,474 - INFO - Created VN ctest-vn-10099854
2024-11-10 13:32:33,532 - DEBUG - VN ctest-vn-10099854 UUID is ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:33,861 - DEBUG - Response for create_network : {'network': {'id': '8ebc6f42-aee5-4762-94ee-98ae56679b98', 'name': 'ctest-vn-48218274', 'tenant_id': 'b1c148d1055243e3b34df02f461cd83a', 'project_id': 'b1c148d1055243e3b34df02f461cd83a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-vn-48218274'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:32:34,087 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9493009-e5fd-4b85-a870-c4d40233f6e4', 'name': '', 'tenant_id': 'b1c148d1055243e3b34df02f461cd83a', 'network_id': '8ebc6f42-aee5-4762-94ee-98ae56679b98', 'ip_version': 4, 'cidr': '92.173.148.0/26', 'allocation_pools': [{'start': '92.173.148.2', 'end': '92.173.148.62'}], 'gateway_ip': '92.173.148.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.173.148.2', 'tags': [], 'project_id': 'b1c148d1055243e3b34df02f461cd83a'}}
2024-11-10 13:32:34,115 - INFO - Created VN ctest-vn-48218274
2024-11-10 13:32:34,176 - DEBUG - VN ctest-vn-48218274 UUID is 8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:34,307 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-10099854, 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-10097290:ctest-vn-48218274, 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:32:34,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffadedb3-a31e-477c-949f-8f0c0e042f44', 'name': 'ctest-vn-10099854', 'tenant_id': 'b1c148d1055243e3b34df02f461cd83a', 'project_id': 'b1c148d1055243e3b34df02f461cd83a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6108c477-14ea-4004-b275-4997cba9ed9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-vn-10099854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-policy-allow-all-85710018']], 'subnet_ipam': [{'subnet_cidr': '175.176.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:32:34,888 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ebc6f42-aee5-4762-94ee-98ae56679b98', 'name': 'ctest-vn-48218274', 'tenant_id': 'b1c148d1055243e3b34df02f461cd83a', 'project_id': 'b1c148d1055243e3b34df02f461cd83a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b9493009-e5fd-4b85-a870-c4d40233f6e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-vn-48218274'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-policy-allow-all-85710018']], 'subnet_ipam': [{'subnet_cidr': '92.173.148.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 13:32:35,096 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-10 13:32:35,409 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-10 13:32:35,446 - DEBUG - Requesting: http://10.0.0.48:8082/domain/711ea29b-ea95-4306-b9b3-4612cb79369f
2024-11-10 13:32:35,463 - DEBUG - Requesting: http://10.0.0.48:8082/project/b1c148d1-0552-43e3-b34d-f02f461cd83a
2024-11-10 13:32:35,548 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:35,565 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:35,580 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/3a005146-02e2-4f8f-aaba-dfdb590cc001
2024-11-10 13:32:35,590 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/3a005146-02e2-4f8f-aaba-dfdb590cc001
2024-11-10 13:32:35,601 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d2c73e91-fb1d-4dc0-93f3-ffc1462a5445
2024-11-10 13:32:35,610 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 13:32:35,610 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:35,625 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/3a005146-02e2-4f8f-aaba-dfdb590cc001
2024-11-10 13:32:35,649 - INFO - Verified VN network id 9 for VN ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:35,649 - INFO - Verifications in API Server for VN ctest-vn-10099854 passed
2024-11-10 13:32:35,649 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:35,664 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/3a005146-02e2-4f8f-aaba-dfdb590cc001
2024-11-10 13:32:35,674 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/3a005146-02e2-4f8f-aaba-dfdb590cc001
2024-11-10 13:32:35,683 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d2c73e91-fb1d-4dc0-93f3-ffc1462a5445
2024-11-10 13:32:35,698 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-10099854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10097290', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18423643006434166652', 'uuid-lslong': '10709435720847863620'}, 'enable': 'true', 'created': '2024-11-10T13:32:33', 'last-modified': '2024-11-10T13:32:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092381'}
2024-11-10 13:32:35,706 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 13:32:35,706 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10099854 passed
2024-11-10 13:32:35,706 - DEBUG - ====Verifying policy data for ctest-vn-10099854 in API_Server ======
2024-11-10 13:32:35,706 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-10 13:32:35,714 - DEBUG - Requesting: http://10.0.0.48:8082/domain/711ea29b-ea95-4306-b9b3-4612cb79369f
2024-11-10 13:32:35,730 - DEBUG - Requesting: http://10.0.0.48:8082/project/b1c148d1-0552-43e3-b34d-f02f461cd83a
2024-11-10 13:32:35,817 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ffadedb3-a31e-477c-949f-8f0c0e042f44
2024-11-10 13:32:35,835 - DEBUG - ==>Verifying data for policy with id: 3dfeafe7-b88d-4045-9e92-43c50476d317, fqn: ['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-policy-allow-all-85710018']
2024-11-10 13:32:35,835 - INFO - VN ctest-vn-10099854 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 13:32:35,835 - DEBUG - Verifying the vn in opserver
2024-11-10 13:32:35,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-10099854 virtual network link through opserver 10.0.0.48
2024-11-10 13:32:35,835 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-11-10 13:32:36,135 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-11-10 13:32:36,210 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-10099854', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-10099854?flat'}
2024-11-10 13:32:36,210 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-10099854 is found in opserver
2024-11-10 13:32:36,225 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 13:32:36,231 - DEBUG - VRF ids for VN ctest-vn-10099854: {}
2024-11-10 13:32:36,231 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-10 13:32:36,238 - DEBUG - Requesting: http://10.0.0.48:8082/domain/711ea29b-ea95-4306-b9b3-4612cb79369f
2024-11-10 13:32:36,257 - DEBUG - Requesting: http://10.0.0.48:8082/project/b1c148d1-0552-43e3-b34d-f02f461cd83a
2024-11-10 13:32:36,351 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:36,369 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:36,384 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/adbe98d5-7bd2-4b0d-ba25-25b83558b76a
2024-11-10 13:32:36,394 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/adbe98d5-7bd2-4b0d-ba25-25b83558b76a
2024-11-10 13:32:36,404 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9d9921eb-7cd7-45fa-909f-b221ce9da994
2024-11-10 13:32:36,413 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 13:32:36,413 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:36,428 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/adbe98d5-7bd2-4b0d-ba25-25b83558b76a
2024-11-10 13:32:36,451 - INFO - Verified VN network id 10 for VN 8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:36,451 - INFO - Verifications in API Server for VN ctest-vn-48218274 passed
2024-11-10 13:32:36,451 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:36,467 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/adbe98d5-7bd2-4b0d-ba25-25b83558b76a
2024-11-10 13:32:36,478 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/adbe98d5-7bd2-4b0d-ba25-25b83558b76a
2024-11-10 13:32:36,488 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/9d9921eb-7cd7-45fa-909f-b221ce9da994
2024-11-10 13:32:36,509 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-48218274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10097290', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10285217981200156514', 'uuid-lslong': '10731682836611832728'}, 'enable': 'true', 'created': '2024-11-10T13:32:33', 'last-modified': '2024-11-10T13:32:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.643027'}
2024-11-10 13:32:36,516 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 13:32:36,516 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48218274 passed
2024-11-10 13:32:36,516 - DEBUG - ====Verifying policy data for ctest-vn-48218274 in API_Server ======
2024-11-10 13:32:36,517 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-10 13:32:36,523 - DEBUG - Requesting: http://10.0.0.48:8082/domain/711ea29b-ea95-4306-b9b3-4612cb79369f
2024-11-10 13:32:36,538 - DEBUG - Requesting: http://10.0.0.48:8082/project/b1c148d1-0552-43e3-b34d-f02f461cd83a
2024-11-10 13:32:36,644 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8ebc6f42-aee5-4762-94ee-98ae56679b98
2024-11-10 13:32:36,660 - DEBUG - ==>Verifying data for policy with id: 3dfeafe7-b88d-4045-9e92-43c50476d317, fqn: ['default-domain', 'ctest-TestBasicPolicy-10097290', 'ctest-policy-allow-all-85710018']
2024-11-10 13:32:36,660 - INFO - VN ctest-vn-48218274 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 13:32:36,661 - DEBUG - Verifying the vn in opserver
2024-11-10 13:32:36,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-48218274 virtual network link through opserver 10.0.0.48
2024-11-10 13:32:36,661 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-11-10 13:32:36,674 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-48218274', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-48218274?flat'}
2024-11-10 13:32:36,674 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10097290:ctest-vn-48218274 is found in opserver
2024-11-10 13:32:36,690 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 13:32:36,698 - DEBUG - VRF ids for VN ctest-vn-48218274: {}
2024-11-10 13:32:36,774 - DEBUG - Services list from nova: [